diff options
| author | Linus Torvalds <torvalds@home.transmeta.com> | 2003-06-04 05:24:32 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.transmeta.com> | 2003-06-04 05:24:32 -0700 |
| commit | 3f3bdf8eddb5cf781a558bd1185fe8ab7786ab03 (patch) | |
| tree | cf0e1498398fdccef4e35622bbaa71ced62f1582 /include/linux | |
| parent | fbf47415732b00ff5578d55c6be779a109a01e1f (diff) | |
| parent | 8698cff842686a009c195e51d364e25a4e5a469a (diff) | |
Merge bk://bk.arm.linux.org.uk/linux-2.5-rmk
into home.transmeta.com:/home/torvalds/v2.5/linux
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/device.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/device.h b/include/linux/device.h index 8e3f1919d974..577ac546e48d 100644 --- a/include/linux/device.h +++ b/include/linux/device.h @@ -385,6 +385,8 @@ struct platform_device { struct resource * resource; }; +#define to_platform_device(x) container_of((x), struct platform_device, dev) + extern int platform_device_register(struct platform_device *); extern void platform_device_unregister(struct platform_device *); |
