diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/amba/bus.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/amba/bus.h b/include/linux/amba/bus.h index 9006c4e75cf7..3d8dcdd1aeae 100644 --- a/include/linux/amba/bus.h +++ b/include/linux/amba/bus.h | |||
| @@ -163,4 +163,13 @@ struct amba_device name##_device = { \ | |||
| 163 | #define module_amba_driver(__amba_drv) \ | 163 | #define module_amba_driver(__amba_drv) \ |
| 164 | module_driver(__amba_drv, amba_driver_register, amba_driver_unregister) | 164 | module_driver(__amba_drv, amba_driver_register, amba_driver_unregister) |
| 165 | 165 | ||
| 166 | /* | ||
| 167 | * builtin_amba_driver() - Helper macro for drivers that don't do anything | ||
| 168 | * special in driver initcall. This eliminates a lot of boilerplate. Each | ||
| 169 | * driver may only use this macro once, and calling it replaces the instance | ||
| 170 | * device_initcall(). | ||
| 171 | */ | ||
| 172 | #define builtin_amba_driver(__amba_drv) \ | ||
| 173 | builtin_driver(__amba_drv, amba_driver_register) | ||
| 174 | |||
| 166 | #endif | 175 | #endif |
