thermal: st: drop owner assignment from platform_drivers
authorWolfram Sang <wsa@the-dreams.de>
Mon, 20 Oct 2014 14:21:43 +0000 (16:21 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Mon, 20 Oct 2014 14:21:43 +0000 (16:21 +0200)
A platform_driver does not need to set an owner, it will be populated by the
driver core.

Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/thermal/st/st_thermal_memmap.c
drivers/thermal/st/st_thermal_syscfg.c

index 39896ce..067bfcd 100644 (file)
@@ -194,7 +194,6 @@ int st_mmap_remove(struct platform_device *pdev)
 static struct platform_driver st_mmap_thermal_driver = {
        .driver = {
                .name   = "st_thermal_mmap",
-               .owner  = THIS_MODULE,
                .pm     = &st_thermal_pm_ops,
                .of_match_table = st_mmap_thermal_of_match,
        },
index 888b58e..26d36a2 100644 (file)
@@ -165,7 +165,6 @@ int st_syscfg_remove(struct platform_device *pdev)
 static struct platform_driver st_syscfg_thermal_driver = {
        .driver = {
                .name   = "st_syscfg_thermal",
-               .owner  = THIS_MODULE,
                .pm     = &st_thermal_pm_ops,
                .of_match_table =  st_syscfg_thermal_of_match,
        },