diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/asm-arm/hardware.h | 9 | ||||
| -rw-r--r-- | include/linux/device.h | 2 |
2 files changed, 11 insertions, 0 deletions
diff --git a/include/asm-arm/hardware.h b/include/asm-arm/hardware.h index 1fd1a5b6504b..0712491cfdc4 100644 --- a/include/asm-arm/hardware.h +++ b/include/asm-arm/hardware.h @@ -15,4 +15,13 @@ #include <asm/arch/hardware.h> +#ifndef __ASSEMBLY__ + +struct platform_device; + +extern int platform_add_devices(struct platform_device *, int); +extern int platform_add_device(struct platform_device *); + +#endif + #endif 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 *); |
