Commit 9144b3cd authored by Wolfram Sang's avatar Wolfram Sang

tty: serial: 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: default avatarWolfram Sang <wsa@the-dreams.de>
parent 3aa5fed2
...@@ -475,7 +475,6 @@ static struct platform_driver altera_jtaguart_platform_driver = { ...@@ -475,7 +475,6 @@ static struct platform_driver altera_jtaguart_platform_driver = {
.remove = altera_jtaguart_remove, .remove = altera_jtaguart_remove,
.driver = { .driver = {
.name = DRV_NAME, .name = DRV_NAME,
.owner = THIS_MODULE,
.of_match_table = of_match_ptr(altera_jtaguart_match), .of_match_table = of_match_ptr(altera_jtaguart_match),
}, },
}; };
......
...@@ -623,7 +623,6 @@ static struct platform_driver altera_uart_platform_driver = { ...@@ -623,7 +623,6 @@ static struct platform_driver altera_uart_platform_driver = {
.remove = altera_uart_remove, .remove = altera_uart_remove,
.driver = { .driver = {
.name = DRV_NAME, .name = DRV_NAME,
.owner = THIS_MODULE,
.of_match_table = of_match_ptr(altera_uart_match), .of_match_table = of_match_ptr(altera_uart_match),
}, },
}; };
......
...@@ -585,7 +585,6 @@ static struct of_device_id apbuart_match[] = { ...@@ -585,7 +585,6 @@ static struct of_device_id apbuart_match[] = {
static struct platform_driver grlib_apbuart_of_driver = { static struct platform_driver grlib_apbuart_of_driver = {
.probe = apbuart_probe, .probe = apbuart_probe,
.driver = { .driver = {
.owner = THIS_MODULE,
.name = "grlib-apbuart", .name = "grlib-apbuart",
.of_match_table = apbuart_match, .of_match_table = apbuart_match,
}, },
......
...@@ -734,7 +734,6 @@ static struct platform_driver ar933x_uart_platform_driver = { ...@@ -734,7 +734,6 @@ static struct platform_driver ar933x_uart_platform_driver = {
.remove = ar933x_uart_remove, .remove = ar933x_uart_remove,
.driver = { .driver = {
.name = DRIVER_NAME, .name = DRIVER_NAME,
.owner = THIS_MODULE,
.of_match_table = of_match_ptr(ar933x_uart_of_ids), .of_match_table = of_match_ptr(ar933x_uart_of_ids),
}, },
}; };
......
...@@ -653,7 +653,6 @@ static struct platform_driver arc_platform_driver = { ...@@ -653,7 +653,6 @@ static struct platform_driver arc_platform_driver = {
.remove = arc_serial_remove, .remove = arc_serial_remove,
.driver = { .driver = {
.name = DRIVER_NAME, .name = DRIVER_NAME,
.owner = THIS_MODULE,
.of_match_table = arc_uart_dt_ids, .of_match_table = arc_uart_dt_ids,
}, },
}; };
......
...@@ -2660,7 +2660,6 @@ static struct platform_driver atmel_serial_driver = { ...@@ -2660,7 +2660,6 @@ static struct platform_driver atmel_serial_driver = {
.resume = atmel_serial_resume, .resume = atmel_serial_resume,
.driver = { .driver = {
.name = "atmel_usart", .name = "atmel_usart",
.owner = THIS_MODULE,
.of_match_table = of_match_ptr(atmel_serial_dt_ids), .of_match_table = of_match_ptr(atmel_serial_dt_ids),
}, },
}; };
......
...@@ -874,7 +874,6 @@ static struct platform_driver bcm_uart_platform_driver = { ...@@ -874,7 +874,6 @@ static struct platform_driver bcm_uart_platform_driver = {
.probe = bcm_uart_probe, .probe = bcm_uart_probe,
.remove = bcm_uart_remove, .remove = bcm_uart_remove,
.driver = { .driver = {
.owner = THIS_MODULE,
.name = "bcm63xx_uart", .name = "bcm63xx_uart",
.of_match_table = bcm63xx_of_match, .of_match_table = bcm63xx_of_match,
}, },
......
...@@ -1386,7 +1386,6 @@ static struct platform_driver bfin_serial_driver = { ...@@ -1386,7 +1386,6 @@ static struct platform_driver bfin_serial_driver = {
.resume = bfin_serial_resume, .resume = bfin_serial_resume,
.driver = { .driver = {
.name = DRIVER_NAME, .name = DRIVER_NAME,
.owner = THIS_MODULE,
}, },
}; };
......
...@@ -542,7 +542,6 @@ MODULE_DEVICE_TABLE(of, clps711x_uart_dt_ids); ...@@ -542,7 +542,6 @@ MODULE_DEVICE_TABLE(of, clps711x_uart_dt_ids);
static struct platform_driver clps711x_uart_platform = { static struct platform_driver clps711x_uart_platform = {
.driver = { .driver = {
.name = "clps711x-uart", .name = "clps711x-uart",
.owner = THIS_MODULE,
.of_match_table = of_match_ptr(clps711x_uart_dt_ids), .of_match_table = of_match_ptr(clps711x_uart_dt_ids),
}, },
.probe = uart_clps711x_probe, .probe = uart_clps711x_probe,
......
...@@ -814,7 +814,6 @@ static struct platform_driver efm32_uart_driver = { ...@@ -814,7 +814,6 @@ static struct platform_driver efm32_uart_driver = {
.driver = { .driver = {
.name = DRIVER_NAME, .name = DRIVER_NAME,
.owner = THIS_MODULE,
.of_match_table = efm32_uart_dt_ids, .of_match_table = efm32_uart_dt_ids,
}, },
}; };
......
...@@ -1876,7 +1876,6 @@ static struct platform_driver lpuart_driver = { ...@@ -1876,7 +1876,6 @@ static struct platform_driver lpuart_driver = {
.remove = lpuart_remove, .remove = lpuart_remove,
.driver = { .driver = {
.name = "fsl-lpuart", .name = "fsl-lpuart",
.owner = THIS_MODULE,
.of_match_table = lpuart_dt_ids, .of_match_table = lpuart_dt_ids,
.pm = &lpuart_pm_ops, .pm = &lpuart_pm_ops,
}, },
......
...@@ -1952,7 +1952,6 @@ static struct platform_driver serial_imx_driver = { ...@@ -1952,7 +1952,6 @@ static struct platform_driver serial_imx_driver = {
.id_table = imx_uart_devtype, .id_table = imx_uart_devtype,
.driver = { .driver = {
.name = "imx-uart", .name = "imx-uart",
.owner = THIS_MODULE,
.of_match_table = imx_uart_dt_ids, .of_match_table = imx_uart_dt_ids,
}, },
}; };
......
...@@ -743,7 +743,6 @@ MODULE_DEVICE_TABLE(of, ltq_asc_match); ...@@ -743,7 +743,6 @@ MODULE_DEVICE_TABLE(of, ltq_asc_match);
static struct platform_driver lqasc_driver = { static struct platform_driver lqasc_driver = {
.driver = { .driver = {
.name = DRVNAME, .name = DRVNAME,
.owner = THIS_MODULE,
.of_match_table = ltq_asc_match, .of_match_table = ltq_asc_match,
}, },
}; };
......
...@@ -768,7 +768,6 @@ static struct platform_driver serial_hs_lpc32xx_driver = { ...@@ -768,7 +768,6 @@ static struct platform_driver serial_hs_lpc32xx_driver = {
.resume = serial_hs_lpc32xx_resume, .resume = serial_hs_lpc32xx_resume,
.driver = { .driver = {
.name = MODNAME, .name = MODNAME,
.owner = THIS_MODULE,
.of_match_table = serial_hs_lpc32xx_dt_ids, .of_match_table = serial_hs_lpc32xx_dt_ids,
}, },
}; };
......
...@@ -693,7 +693,6 @@ static struct platform_driver mcf_platform_driver = { ...@@ -693,7 +693,6 @@ static struct platform_driver mcf_platform_driver = {
.remove = mcf_remove, .remove = mcf_remove,
.driver = { .driver = {
.name = "mcfuart", .name = "mcfuart",
.owner = THIS_MODULE,
}, },
}; };
......
...@@ -599,7 +599,6 @@ static struct platform_driver meson_uart_platform_driver = { ...@@ -599,7 +599,6 @@ static struct platform_driver meson_uart_platform_driver = {
.probe = meson_uart_probe, .probe = meson_uart_probe,
.remove = meson_uart_remove, .remove = meson_uart_remove,
.driver = { .driver = {
.owner = THIS_MODULE,
.name = "meson_uart", .name = "meson_uart",
.of_match_table = meson_uart_dt_match, .of_match_table = meson_uart_dt_match,
}, },
......
...@@ -1889,7 +1889,6 @@ static struct platform_driver mpc52xx_uart_of_driver = { ...@@ -1889,7 +1889,6 @@ static struct platform_driver mpc52xx_uart_of_driver = {
#endif #endif
.driver = { .driver = {
.name = "mpc52xx-psc-uart", .name = "mpc52xx-psc-uart",
.owner = THIS_MODULE,
.of_match_table = mpc52xx_uart_of_match, .of_match_table = mpc52xx_uart_of_match,
}, },
}; };
......
...@@ -2111,7 +2111,6 @@ static struct platform_driver mpsc_driver = { ...@@ -2111,7 +2111,6 @@ static struct platform_driver mpsc_driver = {
.remove = mpsc_drv_remove, .remove = mpsc_drv_remove,
.driver = { .driver = {
.name = MPSC_CTLR_NAME, .name = MPSC_CTLR_NAME,
.owner = THIS_MODULE,
}, },
}; };
......
...@@ -1114,7 +1114,6 @@ static struct platform_driver msm_platform_driver = { ...@@ -1114,7 +1114,6 @@ static struct platform_driver msm_platform_driver = {
.probe = msm_serial_probe, .probe = msm_serial_probe,
.driver = { .driver = {
.name = "msm_serial", .name = "msm_serial",
.owner = THIS_MODULE,
.of_match_table = msm_match_table, .of_match_table = msm_match_table,
}, },
}; };
......
...@@ -1838,7 +1838,6 @@ static struct platform_driver msm_serial_hs_platform_driver = { ...@@ -1838,7 +1838,6 @@ static struct platform_driver msm_serial_hs_platform_driver = {
.remove = msm_hs_remove, .remove = msm_hs_remove,
.driver = { .driver = {
.name = "msm_serial_hs", .name = "msm_serial_hs",
.owner = THIS_MODULE,
.pm = &msm_hs_dev_pm_ops, .pm = &msm_hs_dev_pm_ops,
}, },
}; };
......
...@@ -1123,7 +1123,6 @@ static struct platform_driver mxs_auart_driver = { ...@@ -1123,7 +1123,6 @@ static struct platform_driver mxs_auart_driver = {
.remove = mxs_auart_remove, .remove = mxs_auart_remove,
.driver = { .driver = {
.name = "mxs-auart", .name = "mxs-auart",
.owner = THIS_MODULE,
.of_match_table = mxs_auart_dt_ids, .of_match_table = mxs_auart_dt_ids,
}, },
}; };
......
...@@ -710,7 +710,6 @@ static struct platform_driver serial_netx_driver = { ...@@ -710,7 +710,6 @@ static struct platform_driver serial_netx_driver = {
.driver = { .driver = {
.name = DRIVER_NAME, .name = DRIVER_NAME,
.owner = THIS_MODULE,
}, },
}; };
......
...@@ -295,7 +295,6 @@ static struct of_device_id of_platform_serial_table[] = { ...@@ -295,7 +295,6 @@ static struct of_device_id of_platform_serial_table[] = {
static struct platform_driver of_platform_serial_driver = { static struct platform_driver of_platform_serial_driver = {
.driver = { .driver = {
.name = "of_serial", .name = "of_serial",
.owner = THIS_MODULE,
.of_match_table = of_platform_serial_table, .of_match_table = of_platform_serial_table,
.pm = &of_serial_pm_ops, .pm = &of_serial_pm_ops,
}, },
......
...@@ -1874,7 +1874,6 @@ static struct platform_driver pmz_driver = { ...@@ -1874,7 +1874,6 @@ static struct platform_driver pmz_driver = {
.remove = __exit_p(pmz_detach), .remove = __exit_p(pmz_detach),
.driver = { .driver = {
.name = "scc", .name = "scc",
.owner = THIS_MODULE,
}, },
}; };
......
...@@ -813,7 +813,6 @@ static int pnx8xxx_serial_remove(struct platform_device *pdev) ...@@ -813,7 +813,6 @@ static int pnx8xxx_serial_remove(struct platform_device *pdev)
static struct platform_driver pnx8xxx_serial_driver = { static struct platform_driver pnx8xxx_serial_driver = {
.driver = { .driver = {
.name = "pnx8xxx-uart", .name = "pnx8xxx-uart",
.owner = THIS_MODULE,
}, },
.probe = pnx8xxx_serial_probe, .probe = pnx8xxx_serial_probe,
.remove = pnx8xxx_serial_remove, .remove = pnx8xxx_serial_remove,
......
...@@ -930,7 +930,6 @@ static struct platform_driver serial_pxa_driver = { ...@@ -930,7 +930,6 @@ static struct platform_driver serial_pxa_driver = {
.driver = { .driver = {
.name = "pxa2xx-uart", .name = "pxa2xx-uart",
.owner = THIS_MODULE,
#ifdef CONFIG_PM #ifdef CONFIG_PM
.pm = &serial_pxa_pm_ops, .pm = &serial_pxa_pm_ops,
#endif #endif
......
...@@ -883,7 +883,6 @@ static struct platform_driver sa11x0_serial_driver = { ...@@ -883,7 +883,6 @@ static struct platform_driver sa11x0_serial_driver = {
.resume = sa1100_serial_resume, .resume = sa1100_serial_resume,
.driver = { .driver = {
.name = "sa11x0-uart", .name = "sa11x0-uart",
.owner = THIS_MODULE,
}, },
}; };
......
...@@ -1848,7 +1848,6 @@ static struct platform_driver samsung_serial_driver = { ...@@ -1848,7 +1848,6 @@ static struct platform_driver samsung_serial_driver = {
.id_table = s3c24xx_serial_driver_ids, .id_table = s3c24xx_serial_driver_ids,
.driver = { .driver = {
.name = "samsung-uart", .name = "samsung-uart",
.owner = THIS_MODULE,
.pm = SERIAL_SAMSUNG_PM_OPS, .pm = SERIAL_SAMSUNG_PM_OPS,
.of_match_table = of_match_ptr(s3c24xx_uart_dt_match), .of_match_table = of_match_ptr(s3c24xx_uart_dt_match),
}, },
......
...@@ -1012,7 +1012,6 @@ static int sccnxp_remove(struct platform_device *pdev) ...@@ -1012,7 +1012,6 @@ static int sccnxp_remove(struct platform_device *pdev)
static struct platform_driver sccnxp_uart_driver = { static struct platform_driver sccnxp_uart_driver = {
.driver = { .driver = {
.name = SCCNXP_NAME, .name = SCCNXP_NAME,
.owner = THIS_MODULE,
}, },
.probe = sccnxp_probe, .probe = sccnxp_probe,
.remove = sccnxp_remove, .remove = sccnxp_remove,
......
...@@ -1165,7 +1165,6 @@ static struct platform_driver serial_txx9_plat_driver = { ...@@ -1165,7 +1165,6 @@ static struct platform_driver serial_txx9_plat_driver = {
#endif #endif
.driver = { .driver = {
.name = "serial_txx9", .name = "serial_txx9",
.owner = THIS_MODULE,
}, },
}; };
......
...@@ -2638,7 +2638,6 @@ static struct platform_driver sci_driver = { ...@@ -2638,7 +2638,6 @@ static struct platform_driver sci_driver = {
.remove = sci_remove, .remove = sci_remove,
.driver = { .driver = {
.name = "sh-sci", .name = "sh-sci",
.owner = THIS_MODULE,
.pm = &sci_dev_pm_ops, .pm = &sci_dev_pm_ops,
.of_match_table = of_match_ptr(of_sci_match), .of_match_table = of_match_ptr(of_sci_match),
}, },
......
...@@ -1477,7 +1477,6 @@ static struct platform_driver sirfsoc_uart_driver = { ...@@ -1477,7 +1477,6 @@ static struct platform_driver sirfsoc_uart_driver = {
.remove = sirfsoc_uart_remove, .remove = sirfsoc_uart_remove,
.driver = { .driver = {
.name = SIRFUART_PORT_NAME, .name = SIRFUART_PORT_NAME,
.owner = THIS_MODULE,
.of_match_table = sirfsoc_uart_ids, .of_match_table = sirfsoc_uart_ids,
.pm = &sirfsoc_uart_pm_ops, .pm = &sirfsoc_uart_pm_ops,
}, },
......
...@@ -895,7 +895,6 @@ static struct platform_driver asc_serial_driver = { ...@@ -895,7 +895,6 @@ static struct platform_driver asc_serial_driver = {
.driver = { .driver = {
.name = DRIVER_NAME, .name = DRIVER_NAME,
.pm = &asc_serial_pm_ops, .pm = &asc_serial_pm_ops,
.owner = THIS_MODULE,
.of_match_table = of_match_ptr(asc_match), .of_match_table = of_match_ptr(asc_match),
}, },
}; };
......
...@@ -626,7 +626,6 @@ MODULE_DEVICE_TABLE(of, hv_match); ...@@ -626,7 +626,6 @@ MODULE_DEVICE_TABLE(of, hv_match);
static struct platform_driver hv_driver = { static struct platform_driver hv_driver = {
.driver = { .driver = {
.name = "hv", .name = "hv",
.owner = THIS_MODULE,
.of_match_table = hv_match, .of_match_table = hv_match,
}, },
.probe = hv_probe, .probe = hv_probe,
......
...@@ -1092,7 +1092,6 @@ MODULE_DEVICE_TABLE(of, sab_match); ...@@ -1092,7 +1092,6 @@ MODULE_DEVICE_TABLE(of, sab_match);
static struct platform_driver sab_driver = { static struct platform_driver sab_driver = {
.driver = { .driver = {
.name = "sab", .name = "sab",
.owner = THIS_MODULE,
.of_match_table = sab_match, .of_match_table = sab_match,
}, },
.probe = sab_probe, .probe = sab_probe,
......
...@@ -1537,7 +1537,6 @@ MODULE_DEVICE_TABLE(of, su_match); ...@@ -1537,7 +1537,6 @@ MODULE_DEVICE_TABLE(of, su_match);
static struct platform_driver su_driver = { static struct platform_driver su_driver = {
.driver = { .driver = {
.name = "su", .name = "su",
.owner = THIS_MODULE,
.of_match_table = su_match, .of_match_table = su_match,
}, },
.probe = su_probe, .probe = su_probe,
......
...@@ -1533,7 +1533,6 @@ MODULE_DEVICE_TABLE(of, zs_match); ...@@ -1533,7 +1533,6 @@ MODULE_DEVICE_TABLE(of, zs_match);
static struct platform_driver zs_driver = { static struct platform_driver zs_driver = {
.driver = { .driver = {
.name = "zs", .name = "zs",
.owner = THIS_MODULE,
.of_match_table = zs_match, .of_match_table = zs_match,
}, },
.probe = zs_probe, .probe = zs_probe,
......
...@@ -501,7 +501,6 @@ static int timbuart_remove(struct platform_device *dev) ...@@ -501,7 +501,6 @@ static int timbuart_remove(struct platform_device *dev)
static struct platform_driver timbuart_platform_driver = { static struct platform_driver timbuart_platform_driver = {
.driver = { .driver = {
.name = "timb-uart", .name = "timb-uart",
.owner = THIS_MODULE,
}, },
.probe = timbuart_probe, .probe = timbuart_probe,
.remove = timbuart_remove, .remove = timbuart_remove,
......
...@@ -1485,7 +1485,6 @@ MODULE_DEVICE_TABLE(of, ucc_uart_match); ...@@ -1485,7 +1485,6 @@ MODULE_DEVICE_TABLE(of, ucc_uart_match);
static struct platform_driver ucc_uart_of_driver = { static struct platform_driver ucc_uart_of_driver = {
.driver = { .driver = {
.name = "ucc_uart", .name = "ucc_uart",
.owner = THIS_MODULE,
.of_match_table = ucc_uart_match, .of_match_table = ucc_uart_match,
}, },
.probe = ucc_uart_probe, .probe = ucc_uart_probe,
......
...@@ -954,7 +954,6 @@ static struct platform_driver siu_device_driver = { ...@@ -954,7 +954,6 @@ static struct platform_driver siu_device_driver = {
.resume = siu_resume, .resume = siu_resume,
.driver = { .driver = {
.name = "SIU", .name = "SIU",
.owner = THIS_MODULE,
}, },
}; };
......
...@@ -745,7 +745,6 @@ static struct platform_driver vt8500_platform_driver = { ...@@ -745,7 +745,6 @@ static struct platform_driver vt8500_platform_driver = {
.remove = vt8500_serial_remove, .remove = vt8500_serial_remove,
.driver = { .driver = {
.name = "vt8500_serial", .name = "vt8500_serial",
.owner = THIS_MODULE,
.of_match_table = wmt_dt_ids, .of_match_table = wmt_dt_ids,
}, },
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment