forked from luck/tmp_suning_uos_patched
power: drop owner assignment from platform_drivers
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>
This commit is contained in:
parent
3493f4144b
commit
816c44c369
@ -1023,7 +1023,6 @@ static SIMPLE_DEV_PM_OPS(pm860x_battery_pm_ops,
|
|||||||
static struct platform_driver pm860x_battery_driver = {
|
static struct platform_driver pm860x_battery_driver = {
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = "88pm860x-battery",
|
.name = "88pm860x-battery",
|
||||||
.owner = THIS_MODULE,
|
|
||||||
.pm = &pm860x_battery_pm_ops,
|
.pm = &pm860x_battery_pm_ops,
|
||||||
},
|
},
|
||||||
.probe = pm860x_battery_probe,
|
.probe = pm860x_battery_probe,
|
||||||
|
@ -732,7 +732,6 @@ static int pm860x_charger_remove(struct platform_device *pdev)
|
|||||||
static struct platform_driver pm860x_charger_driver = {
|
static struct platform_driver pm860x_charger_driver = {
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = "88pm860x-charger",
|
.name = "88pm860x-charger",
|
||||||
.owner = THIS_MODULE,
|
|
||||||
},
|
},
|
||||||
.probe = pm860x_charger_probe,
|
.probe = pm860x_charger_probe,
|
||||||
.remove = pm860x_charger_remove,
|
.remove = pm860x_charger_remove,
|
||||||
|
@ -1195,7 +1195,6 @@ static struct platform_driver ab8500_btemp_driver = {
|
|||||||
.resume = ab8500_btemp_resume,
|
.resume = ab8500_btemp_resume,
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = "ab8500-btemp",
|
.name = "ab8500-btemp",
|
||||||
.owner = THIS_MODULE,
|
|
||||||
.of_match_table = ab8500_btemp_match,
|
.of_match_table = ab8500_btemp_match,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
@ -3733,7 +3733,6 @@ static struct platform_driver ab8500_charger_driver = {
|
|||||||
.resume = ab8500_charger_resume,
|
.resume = ab8500_charger_resume,
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = "ab8500-charger",
|
.name = "ab8500-charger",
|
||||||
.owner = THIS_MODULE,
|
|
||||||
.of_match_table = ab8500_charger_match,
|
.of_match_table = ab8500_charger_match,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
@ -3280,7 +3280,6 @@ static struct platform_driver ab8500_fg_driver = {
|
|||||||
.resume = ab8500_fg_resume,
|
.resume = ab8500_fg_resume,
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = "ab8500-fg",
|
.name = "ab8500-fg",
|
||||||
.owner = THIS_MODULE,
|
|
||||||
.of_match_table = ab8500_fg_match,
|
.of_match_table = ab8500_fg_match,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
@ -2156,7 +2156,6 @@ static struct platform_driver abx500_chargalg_driver = {
|
|||||||
.resume = abx500_chargalg_resume,
|
.resume = abx500_chargalg_resume,
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = "ab8500-chargalg",
|
.name = "ab8500-chargalg",
|
||||||
.owner = THIS_MODULE,
|
|
||||||
.of_match_table = ab8500_chargalg_match,
|
.of_match_table = ab8500_chargalg_match,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
@ -1014,7 +1014,6 @@ static struct platform_driver bq27000_battery_driver = {
|
|||||||
.remove = bq27000_battery_remove,
|
.remove = bq27000_battery_remove,
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = "bq27000-battery",
|
.name = "bq27000-battery",
|
||||||
.owner = THIS_MODULE,
|
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -2028,7 +2028,6 @@ static const struct dev_pm_ops charger_manager_pm = {
|
|||||||
static struct platform_driver charger_manager_driver = {
|
static struct platform_driver charger_manager_driver = {
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = "charger-manager",
|
.name = "charger-manager",
|
||||||
.owner = THIS_MODULE,
|
|
||||||
.pm = &charger_manager_pm,
|
.pm = &charger_manager_pm,
|
||||||
.of_match_table = charger_manager_match,
|
.of_match_table = charger_manager_match,
|
||||||
},
|
},
|
||||||
|
@ -579,7 +579,6 @@ static int da9030_battery_remove(struct platform_device *dev)
|
|||||||
static struct platform_driver da903x_battery_driver = {
|
static struct platform_driver da903x_battery_driver = {
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = "da903x-battery",
|
.name = "da903x-battery",
|
||||||
.owner = THIS_MODULE,
|
|
||||||
},
|
},
|
||||||
.probe = da9030_battery_probe,
|
.probe = da9030_battery_probe,
|
||||||
.remove = da9030_battery_remove,
|
.remove = da9030_battery_remove,
|
||||||
|
@ -656,7 +656,6 @@ static struct platform_driver da9052_bat_driver = {
|
|||||||
.remove = da9052_bat_remove,
|
.remove = da9052_bat_remove,
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = "da9052-bat",
|
.name = "da9052-bat",
|
||||||
.owner = THIS_MODULE,
|
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
module_platform_driver(da9052_bat_driver);
|
module_platform_driver(da9052_bat_driver);
|
||||||
|
@ -414,7 +414,6 @@ static const struct dev_pm_ops gab_pm_ops = {
|
|||||||
static struct platform_driver gab_driver = {
|
static struct platform_driver gab_driver = {
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = "generic-adc-battery",
|
.name = "generic-adc-battery",
|
||||||
.owner = THIS_MODULE,
|
|
||||||
.pm = GAB_PM_OPS
|
.pm = GAB_PM_OPS
|
||||||
},
|
},
|
||||||
.probe = gab_probe,
|
.probe = gab_probe,
|
||||||
|
@ -194,7 +194,6 @@ static struct platform_driver gpio_charger_driver = {
|
|||||||
.remove = gpio_charger_remove,
|
.remove = gpio_charger_remove,
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = "gpio-charger",
|
.name = "gpio-charger",
|
||||||
.owner = THIS_MODULE,
|
|
||||||
.pm = &gpio_charger_pm_ops,
|
.pm = &gpio_charger_pm_ops,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
@ -773,7 +773,6 @@ static int platform_pmic_battery_remove(struct platform_device *pdev)
|
|||||||
static struct platform_driver platform_pmic_battery_driver = {
|
static struct platform_driver platform_pmic_battery_driver = {
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = DRIVER_NAME,
|
.name = DRIVER_NAME,
|
||||||
.owner = THIS_MODULE,
|
|
||||||
},
|
},
|
||||||
.probe = platform_pmic_battery_probe,
|
.probe = platform_pmic_battery_probe,
|
||||||
.remove = platform_pmic_battery_remove,
|
.remove = platform_pmic_battery_remove,
|
||||||
|
@ -406,7 +406,6 @@ static struct platform_driver jz_battery_driver = {
|
|||||||
.remove = jz_battery_remove,
|
.remove = jz_battery_remove,
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = "jz4740-battery",
|
.name = "jz4740-battery",
|
||||||
.owner = THIS_MODULE,
|
|
||||||
.pm = JZ_BATTERY_PM_OPS,
|
.pm = JZ_BATTERY_PM_OPS,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
@ -740,7 +740,6 @@ static struct platform_driver lp8788_charger_driver = {
|
|||||||
.remove = lp8788_charger_remove,
|
.remove = lp8788_charger_remove,
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = LP8788_DEV_CHARGER,
|
.name = LP8788_DEV_CHARGER,
|
||||||
.owner = THIS_MODULE,
|
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
module_platform_driver(lp8788_charger_driver);
|
module_platform_driver(lp8788_charger_driver);
|
||||||
|
@ -599,7 +599,6 @@ MODULE_DEVICE_TABLE(platform, max14577_charger_id);
|
|||||||
|
|
||||||
static struct platform_driver max14577_charger_driver = {
|
static struct platform_driver max14577_charger_driver = {
|
||||||
.driver = {
|
.driver = {
|
||||||
.owner = THIS_MODULE,
|
|
||||||
.name = "max14577-charger",
|
.name = "max14577-charger",
|
||||||
},
|
},
|
||||||
.probe = max14577_charger_probe,
|
.probe = max14577_charger_probe,
|
||||||
|
@ -368,7 +368,6 @@ static struct platform_driver max8903_driver = {
|
|||||||
.remove = max8903_remove,
|
.remove = max8903_remove,
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = "max8903-charger",
|
.name = "max8903-charger",
|
||||||
.owner = THIS_MODULE,
|
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -181,7 +181,6 @@ static const struct platform_device_id max8997_battery_id[] = {
|
|||||||
static struct platform_driver max8997_battery_driver = {
|
static struct platform_driver max8997_battery_driver = {
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = "max8997-battery",
|
.name = "max8997-battery",
|
||||||
.owner = THIS_MODULE,
|
|
||||||
},
|
},
|
||||||
.probe = max8997_battery_probe,
|
.probe = max8997_battery_probe,
|
||||||
.remove = max8997_battery_remove,
|
.remove = max8997_battery_remove,
|
||||||
|
@ -195,7 +195,6 @@ static const struct platform_device_id max8998_battery_id[] = {
|
|||||||
static struct platform_driver max8998_battery_driver = {
|
static struct platform_driver max8998_battery_driver = {
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = "max8998-battery",
|
.name = "max8998-battery",
|
||||||
.owner = THIS_MODULE,
|
|
||||||
},
|
},
|
||||||
.probe = max8998_battery_probe,
|
.probe = max8998_battery_probe,
|
||||||
.remove = max8998_battery_remove,
|
.remove = max8998_battery_remove,
|
||||||
|
@ -677,7 +677,6 @@ MODULE_DEVICE_TABLE(of, olpc_battery_ids);
|
|||||||
static struct platform_driver olpc_battery_driver = {
|
static struct platform_driver olpc_battery_driver = {
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = "olpc-battery",
|
.name = "olpc-battery",
|
||||||
.owner = THIS_MODULE,
|
|
||||||
.of_match_table = olpc_battery_ids,
|
.of_match_table = olpc_battery_ids,
|
||||||
},
|
},
|
||||||
.probe = olpc_battery_probe,
|
.probe = olpc_battery_probe,
|
||||||
|
@ -281,7 +281,6 @@ static struct platform_driver rx51_battery_driver = {
|
|||||||
.remove = rx51_battery_remove,
|
.remove = rx51_battery_remove,
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = "rx51-battery",
|
.name = "rx51-battery",
|
||||||
.owner = THIS_MODULE,
|
|
||||||
.of_match_table = of_match_ptr(n900_battery_of_match),
|
.of_match_table = of_match_ptr(n900_battery_of_match),
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
@ -353,7 +353,6 @@ static struct platform_driver tps65090_charger_driver = {
|
|||||||
.driver = {
|
.driver = {
|
||||||
.name = "tps65090-charger",
|
.name = "tps65090-charger",
|
||||||
.of_match_table = of_tps65090_charger_match,
|
.of_match_table = of_tps65090_charger_match,
|
||||||
.owner = THIS_MODULE,
|
|
||||||
},
|
},
|
||||||
.probe = tps65090_charger_probe,
|
.probe = tps65090_charger_probe,
|
||||||
.remove = tps65090_charger_remove,
|
.remove = tps65090_charger_remove,
|
||||||
|
@ -716,7 +716,6 @@ MODULE_DEVICE_TABLE(of, twl_bci_of_match);
|
|||||||
static struct platform_driver twl4030_bci_driver = {
|
static struct platform_driver twl4030_bci_driver = {
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = "twl4030_bci",
|
.name = "twl4030_bci",
|
||||||
.owner = THIS_MODULE,
|
|
||||||
.of_match_table = of_match_ptr(twl_bci_of_match),
|
.of_match_table = of_match_ptr(twl_bci_of_match),
|
||||||
},
|
},
|
||||||
.remove = __exit_p(twl4030_bci_remove),
|
.remove = __exit_p(twl4030_bci_remove),
|
||||||
|
@ -281,7 +281,6 @@ static int wm97xx_bat_remove(struct platform_device *dev)
|
|||||||
static struct platform_driver wm97xx_bat_driver = {
|
static struct platform_driver wm97xx_bat_driver = {
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = "wm97xx-battery",
|
.name = "wm97xx-battery",
|
||||||
.owner = THIS_MODULE,
|
|
||||||
#ifdef CONFIG_PM
|
#ifdef CONFIG_PM
|
||||||
.pm = &wm97xx_bat_pm_ops,
|
.pm = &wm97xx_bat_pm_ops,
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user