diff options
| author | Wolfram Sang <[email protected]> | 2014-10-28 16:40:41 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2014-11-06 23:16:02 +0000 |
| commit | c3b50dc219e1437e4dcb6a1639b004648dc29faa (patch) | |
| tree | fe43f3dc0559b9a4c4f835c88504fa157fdf2869 /lib/bitmap.c | |
| parent | core: platform: add warning if driver has no owner (diff) | |
| download | kernel-c3b50dc219e1437e4dcb6a1639b004648dc29faa.tar.gz kernel-c3b50dc219e1437e4dcb6a1639b004648dc29faa.zip | |
core: platform: let platform_driver_probe initialize module owner
Since commit 9447057eaff8 ("platform_device: use a macro instead of
platform_driver_register"), platform_driver_register() always overwrites
the .owner field of a platform_driver with THIS_MODULE. This breaks
platform_driver_probe() which uses it from within the platform core
instead of the module init. Fix it by using a similar #define construct
to obtain THIS_MODULE and pass it on later.
Reported-by: Russell King <[email protected]>
Signed-off-by: Wolfram Sang <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'lib/bitmap.c')
0 files changed, 0 insertions, 0 deletions
