diff options
| author | Alex Shi <alex.shi@linaro.org> | 2016-06-02 09:54:57 +0800 |
|---|---|---|
| committer | Alex Shi <alex.shi@linaro.org> | 2016-06-02 09:54:57 +0800 |
| commit | 2ea80ad4205178dcea1152c0a603f23531c5412c (patch) | |
| tree | 98a470ee6e16fb0de4c403c4c4af942d6af5760c /include/linux/amba | |
| parent | 510d0a3f869611dcd001a2b7627fa5dded4579af (diff) | |
| parent | 4a192f60855a84820d361ec58eda0d043faab6f6 (diff) | |
Merge remote-tracking branch 'v4.4/topic/coresight' into linux-linaro-lsk-v4.4
Diffstat (limited to 'include/linux/amba')
| -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 = { \ #define module_amba_driver(__amba_drv) \ module_driver(__amba_drv, amba_driver_register, amba_driver_unregister) +/* + * builtin_amba_driver() - Helper macro for drivers that don't do anything + * special in driver initcall. This eliminates a lot of boilerplate. Each + * driver may only use this macro once, and calling it replaces the instance + * device_initcall(). + */ +#define builtin_amba_driver(__amba_drv) \ + builtin_driver(__amba_drv, amba_driver_register) + #endif |
