]> git.baikalelectronics.ru Git - kernel.git/commit
platform_device: use a macro instead of platform_driver_register
authorLibo Chen <clbchenlibo.chen@huawei.com>
Sat, 25 May 2013 04:40:50 +0000 (12:40 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 3 Jun 2013 20:59:03 +0000 (13:59 -0700)
commitf8969a9033d291cd6a22d52fae44b87b38c41ca1
tree6284b1e6653b14ceb6a9193002eec6303a509a66
parent8aa248a802fdbda35e11d20b2dc34898183fb233
platform_device: use a macro instead of platform_driver_register

I found a lot of mistakes using struct platform_driver without owner
so I make a macro instead of the function platform_driver_register.
It can set owner in it, then guys don`t care about module owner again.

Signed-off-by: Libo Chen <libo.chen@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/platform.c
include/linux/platform_device.h