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

Commit 3dd0a909 authored by Thierry Reding's avatar Thierry Reding
Browse files

pwm: Fill in missing .owner fields



Some drivers don't set the .owner fields of the struct device_driver or
struct pwm_ops, which causes the module usage count to become wrong.

Signed-off-by: default avatarThierry Reding <thierry.reding@gmail.com>
parent 88b613e6
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -434,6 +434,7 @@ MODULE_DEVICE_TABLE(of, atmel_tcb_pwm_dt_ids);
static struct platform_driver atmel_tcb_pwm_driver = {
static struct platform_driver atmel_tcb_pwm_driver = {
	.driver = {
	.driver = {
		.name = "atmel-tcb-pwm",
		.name = "atmel-tcb-pwm",
		.owner = THIS_MODULE,
		.of_match_table = atmel_tcb_pwm_dt_ids,
		.of_match_table = atmel_tcb_pwm_dt_ids,
	},
	},
	.probe = atmel_tcb_pwm_probe,
	.probe = atmel_tcb_pwm_probe,
+1 −0
Original line number Original line Diff line number Diff line
@@ -149,6 +149,7 @@ static int bfin_pwm_remove(struct platform_device *pdev)
static struct platform_driver bfin_pwm_driver = {
static struct platform_driver bfin_pwm_driver = {
	.driver = {
	.driver = {
		.name = "bfin-pwm",
		.name = "bfin-pwm",
		.owner = THIS_MODULE,
	},
	},
	.probe = bfin_pwm_probe,
	.probe = bfin_pwm_probe,
	.remove = bfin_pwm_remove,
	.remove = bfin_pwm_remove,
+1 −0
Original line number Original line Diff line number Diff line
@@ -295,6 +295,7 @@ static int imx_pwm_remove(struct platform_device *pdev)
static struct platform_driver imx_pwm_driver = {
static struct platform_driver imx_pwm_driver = {
	.driver		= {
	.driver		= {
		.name	= "imx-pwm",
		.name	= "imx-pwm",
		.owner = THIS_MODULE,
		.of_match_table = of_match_ptr(imx_pwm_dt_ids),
		.of_match_table = of_match_ptr(imx_pwm_dt_ids),
	},
	},
	.probe		= imx_pwm_probe,
	.probe		= imx_pwm_probe,
+1 −0
Original line number Original line Diff line number Diff line
@@ -171,6 +171,7 @@ MODULE_DEVICE_TABLE(of, lpc32xx_pwm_dt_ids);
static struct platform_driver lpc32xx_pwm_driver = {
static struct platform_driver lpc32xx_pwm_driver = {
	.driver = {
	.driver = {
		.name = "lpc32xx-pwm",
		.name = "lpc32xx-pwm",
		.owner = THIS_MODULE,
		.of_match_table = of_match_ptr(lpc32xx_pwm_dt_ids),
		.of_match_table = of_match_ptr(lpc32xx_pwm_dt_ids),
	},
	},
	.probe = lpc32xx_pwm_probe,
	.probe = lpc32xx_pwm_probe,
+1 −0
Original line number Original line Diff line number Diff line
@@ -182,6 +182,7 @@ MODULE_DEVICE_TABLE(of, mxs_pwm_dt_ids);
static struct platform_driver mxs_pwm_driver = {
static struct platform_driver mxs_pwm_driver = {
	.driver = {
	.driver = {
		.name = "mxs-pwm",
		.name = "mxs-pwm",
		.owner = THIS_MODULE,
		.of_match_table = of_match_ptr(mxs_pwm_dt_ids),
		.of_match_table = of_match_ptr(mxs_pwm_dt_ids),
	},
	},
	.probe = mxs_pwm_probe,
	.probe = mxs_pwm_probe,
Loading