diff options
| author | Linus Torvalds <torvalds@home.transmeta.com> | 2003-06-04 05:28:21 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.transmeta.com> | 2003-06-04 05:28:21 -0700 |
| commit | 9be2217a8d55e94046e47d5668e984036cd44c75 (patch) | |
| tree | 75d73319815eca67d2ae0c3d99a418dc2ce75f08 /include/linux | |
| parent | 29907881db8546d1d88aeb17e4c4efb236067bfd (diff) | |
| parent | 3f3bdf8eddb5cf781a558bd1185fe8ab7786ab03 (diff) | |
Merge bk://kernel.bkbits.net/gregkh/linux/pci-2.5
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 *); |
