Re: [Cocci] [RFC] drop owner assignment from platform_drivers

2014-10-11 Thread Russell King - ARM Linux
On Sat, Oct 11, 2014 at 06:56:51PM +0200, Wolfram Sang wrote: You got me wondering, though, that it could not be correct to call platform_driver_register() from the platform core instead of module init. I will check tomorrow. Still, this would be a bug independent of my series.

Re: [Cocci] [RFC] drop owner assignment from platform_drivers

2014-10-10 Thread Russell King - ARM Linux
On Fri, Oct 10, 2014 at 08:26:05PM +0200, Wolfram Sang wrote: platform_create_bundle() calls platform_driver_probe(). platform_driver_probe() calls platform_driver_register(). platform_driver_register() modifies driver.owner. So, it is correct from the point of view that it doesn't make