Thread (11 messages) 11 messages, 6 authors, 2013-05-22

[PATCH 00/19] driver:usb&net: add missing platform_driver owner

flat view

From: Gu Zheng <hidden>
Date: 2013-05-21 08:02:50
Also in: lkml

On 05/21/2013 02:41 PM, Thomas Petazzoni wrote:
Dear David Miller,

On Mon, 20 May 2013 23:26:19 -0700 (PDT), David Miller wrote:
quoted
From: Libo Chen <redacted>
Date: Tue, 21 May 2013 10:42:00 +0800
quoted
I find a lot of mistakes using struct platform_driver without owner.
So I pick up some of them including usb and net modules
Instead of doing it this way, which is obviously error prone and
easy to forget, make platform_driver_register() be a macro which
sets the module owner field then calls the real
__platform_driver_register().
Or, maybe make the existing module_platform_driver() macro do this?

But not all the modules use module_platform_driver() macro to replace the module init/exit.

Thanks,
Gu
Best regards,

Thomas
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help