[PATCH v2 6/7] clk: Add initial WM831x clock driver
Grant Likely
grant.likely at secretlab.ca
Tue Oct 4 19:22:28 EDT 2011
On Tue, Oct 04, 2011 at 09:50:02PM +0100, Mark Brown wrote:
> On Tue, Oct 04, 2011 at 12:18:18PM -0600, Grant Likely wrote:
> > #define module_platform_driver(__driver) \
> > int __driver##_init(void) \
> > { \
> > return platform_driver_register(&(__driver)); \
> > } \
> > module_init(__driver##_init); \
> > void ##__driver##_exit(void) \
> > { \
> > platform_driver_unregister(&(__driver)); \
> > } \
> > module_exit(##__driver##_exit);
>
> > It's not a lot of code, but I dislike how much boilerplate every
> > single driver has to use if it doesn't do anything special.
>
> Yeah, this sort of stuff would be helpful - there's quite a bit of
> boilerplate you end up having to write to get drivers going.
Draft patch written, and posting to the list soon...
g.
More information about the linux-arm-kernel
mailing list