Messages in this thread | | | Date | Tue, 21 May 2013 00:13:15 -0700 (PDT) | Subject | Re: [PATCH 00/19] driver:usb&net: add missing platform_driver owner | From | David Miller <> |
| |
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Date: Tue, 21 May 2013 08:41:08 +0200
> Dear David Miller, > > On Mon, 20 May 2013 23:26:19 -0700 (PDT), David Miller wrote: >> From: Libo Chen <libo.chen@huawei.com> >> Date: Tue, 21 May 2013 10:42:00 +0800 >> >> > 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?
Even better.
| |