Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 59c0621d authored by Kiran Padwal's avatar Kiran Padwal Committed by Mike Turquette
Browse files

clk: Remove .owner field for driver



There is no need to init .owner field.

Based on the patch from Peter Griffin <peter.griffin@linaro.org>
"mmc: remove .owner field for drivers using module_platform_driver"

This patch removes the superflous .owner field for drivers which
use the module_platform_driver API, as this is overriden in
platform_driver_register anyway."

Signed-off-by: default avatarKiran Padwal <kiran.padwal@smartplayin.com>
Signed-off-by: default avatarMike Turquette <mturquette@linaro.org>
parent fa531042
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -544,7 +544,6 @@ static int axi_clkgen_remove(struct platform_device *pdev)
static struct platform_driver axi_clkgen_driver = {
	.driver = {
		.name = "adi-axi-clkgen",
		.owner = THIS_MODULE,
		.of_match_table = axi_clkgen_ids,
	},
	.probe = axi_clkgen_probe,
+0 −1
Original line number Diff line number Diff line
@@ -73,7 +73,6 @@ MODULE_DEVICE_TABLE(platform, max77686_clk_id);
static struct platform_driver max77686_clk_driver = {
	.driver = {
		.name  = "max77686-clk",
		.owner = THIS_MODULE,
	},
	.probe = max77686_clk_probe,
	.remove = max77686_clk_remove,
+0 −1
Original line number Diff line number Diff line
@@ -84,7 +84,6 @@ MODULE_DEVICE_TABLE(platform, max77802_clk_id);
static struct platform_driver max77802_clk_driver = {
	.driver = {
		.name  = "max77802-clk",
		.owner = THIS_MODULE,
	},
	.probe = max77802_clk_probe,
	.remove = max77802_clk_remove,
+0 −1
Original line number Diff line number Diff line
@@ -292,7 +292,6 @@ static int palmas_clks_remove(struct platform_device *pdev)
static struct platform_driver palmas_clks_driver = {
	.driver = {
		.name = "palmas-clk",
		.owner = THIS_MODULE,
		.of_match_table = palmas_clks_of_match,
	},
	.probe = palmas_clks_probe,
+0 −1
Original line number Diff line number Diff line
@@ -112,7 +112,6 @@ static int twl6040_clk_remove(struct platform_device *pdev)
static struct platform_driver twl6040_clk_driver = {
	.driver = {
		.name = "twl6040-clk",
		.owner = THIS_MODULE,
	},
	.probe = twl6040_clk_probe,
	.remove = twl6040_clk_remove,
Loading