浏览代码

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: Wolfram Sang <wsa@the-dreams.de>
Wolfram Sang 11 年之前
父节点
当前提交
9144b3cded
共有 41 个文件被更改,包括 0 次插入41 次删除
  1. 0 1
      drivers/tty/serial/altera_jtaguart.c
  2. 0 1
      drivers/tty/serial/altera_uart.c
  3. 0 1
      drivers/tty/serial/apbuart.c
  4. 0 1
      drivers/tty/serial/ar933x_uart.c
  5. 0 1
      drivers/tty/serial/arc_uart.c
  6. 0 1
      drivers/tty/serial/atmel_serial.c
  7. 0 1
      drivers/tty/serial/bcm63xx_uart.c
  8. 0 1
      drivers/tty/serial/bfin_uart.c
  9. 0 1
      drivers/tty/serial/clps711x.c
  10. 0 1
      drivers/tty/serial/efm32-uart.c
  11. 0 1
      drivers/tty/serial/fsl_lpuart.c
  12. 0 1
      drivers/tty/serial/imx.c
  13. 0 1
      drivers/tty/serial/lantiq.c
  14. 0 1
      drivers/tty/serial/lpc32xx_hs.c
  15. 0 1
      drivers/tty/serial/mcf.c
  16. 0 1
      drivers/tty/serial/meson_uart.c
  17. 0 1
      drivers/tty/serial/mpc52xx_uart.c
  18. 0 1
      drivers/tty/serial/mpsc.c
  19. 0 1
      drivers/tty/serial/msm_serial.c
  20. 0 1
      drivers/tty/serial/msm_serial_hs.c
  21. 0 1
      drivers/tty/serial/mxs-auart.c
  22. 0 1
      drivers/tty/serial/netx-serial.c
  23. 0 1
      drivers/tty/serial/of_serial.c
  24. 0 1
      drivers/tty/serial/pmac_zilog.c
  25. 0 1
      drivers/tty/serial/pnx8xxx_uart.c
  26. 0 1
      drivers/tty/serial/pxa.c
  27. 0 1
      drivers/tty/serial/sa1100.c
  28. 0 1
      drivers/tty/serial/samsung.c
  29. 0 1
      drivers/tty/serial/sccnxp.c
  30. 0 1
      drivers/tty/serial/serial_txx9.c
  31. 0 1
      drivers/tty/serial/sh-sci.c
  32. 0 1
      drivers/tty/serial/sirfsoc_uart.c
  33. 0 1
      drivers/tty/serial/st-asc.c
  34. 0 1
      drivers/tty/serial/sunhv.c
  35. 0 1
      drivers/tty/serial/sunsab.c
  36. 0 1
      drivers/tty/serial/sunsu.c
  37. 0 1
      drivers/tty/serial/sunzilog.c
  38. 0 1
      drivers/tty/serial/timbuart.c
  39. 0 1
      drivers/tty/serial/ucc_uart.c
  40. 0 1
      drivers/tty/serial/vr41xx_siu.c
  41. 0 1
      drivers/tty/serial/vt8500_serial.c

+ 0 - 1
drivers/tty/serial/altera_jtaguart.c

@@ -475,7 +475,6 @@ static struct platform_driver altera_jtaguart_platform_driver = {
 	.remove	= altera_jtaguart_remove,
 	.driver	= {
 		.name		= DRV_NAME,
-		.owner		= THIS_MODULE,
 		.of_match_table	= of_match_ptr(altera_jtaguart_match),
 	},
 };

+ 0 - 1
drivers/tty/serial/altera_uart.c

@@ -623,7 +623,6 @@ static struct platform_driver altera_uart_platform_driver = {
 	.remove	= altera_uart_remove,
 	.driver	= {
 		.name		= DRV_NAME,
-		.owner		= THIS_MODULE,
 		.of_match_table	= of_match_ptr(altera_uart_match),
 	},
 };

+ 0 - 1
drivers/tty/serial/apbuart.c

@@ -585,7 +585,6 @@ static struct of_device_id apbuart_match[] = {
 static struct platform_driver grlib_apbuart_of_driver = {
 	.probe = apbuart_probe,
 	.driver = {
-		.owner = THIS_MODULE,
 		.name = "grlib-apbuart",
 		.of_match_table = apbuart_match,
 	},

+ 0 - 1
drivers/tty/serial/ar933x_uart.c

@@ -734,7 +734,6 @@ static struct platform_driver ar933x_uart_platform_driver = {
 	.remove		= ar933x_uart_remove,
 	.driver		= {
 		.name		= DRIVER_NAME,
-		.owner		= THIS_MODULE,
 		.of_match_table = of_match_ptr(ar933x_uart_of_ids),
 	},
 };

+ 0 - 1
drivers/tty/serial/arc_uart.c

@@ -653,7 +653,6 @@ static struct platform_driver arc_platform_driver = {
 	.remove = arc_serial_remove,
 	.driver = {
 		.name = DRIVER_NAME,
-		.owner = THIS_MODULE,
 		.of_match_table  = arc_uart_dt_ids,
 	 },
 };

+ 0 - 1
drivers/tty/serial/atmel_serial.c

@@ -2660,7 +2660,6 @@ static struct platform_driver atmel_serial_driver = {
 	.resume		= atmel_serial_resume,
 	.driver		= {
 		.name	= "atmel_usart",
-		.owner	= THIS_MODULE,
 		.of_match_table	= of_match_ptr(atmel_serial_dt_ids),
 	},
 };

+ 0 - 1
drivers/tty/serial/bcm63xx_uart.c

@@ -874,7 +874,6 @@ static struct platform_driver bcm_uart_platform_driver = {
 	.probe	= bcm_uart_probe,
 	.remove	= bcm_uart_remove,
 	.driver	= {
-		.owner = THIS_MODULE,
 		.name  = "bcm63xx_uart",
 		.of_match_table = bcm63xx_of_match,
 	},

+ 0 - 1
drivers/tty/serial/bfin_uart.c

@@ -1386,7 +1386,6 @@ static struct platform_driver bfin_serial_driver = {
 	.resume		= bfin_serial_resume,
 	.driver		= {
 		.name	= DRIVER_NAME,
-		.owner	= THIS_MODULE,
 	},
 };
 

+ 0 - 1
drivers/tty/serial/clps711x.c

@@ -542,7 +542,6 @@ MODULE_DEVICE_TABLE(of, clps711x_uart_dt_ids);
 static struct platform_driver clps711x_uart_platform = {
 	.driver = {
 		.name		= "clps711x-uart",
-		.owner		= THIS_MODULE,
 		.of_match_table	= of_match_ptr(clps711x_uart_dt_ids),
 	},
 	.probe	= uart_clps711x_probe,

+ 0 - 1
drivers/tty/serial/efm32-uart.c

@@ -814,7 +814,6 @@ static struct platform_driver efm32_uart_driver = {
 
 	.driver = {
 		.name = DRIVER_NAME,
-		.owner = THIS_MODULE,
 		.of_match_table = efm32_uart_dt_ids,
 	},
 };

+ 0 - 1
drivers/tty/serial/fsl_lpuart.c

@@ -1876,7 +1876,6 @@ static struct platform_driver lpuart_driver = {
 	.remove		= lpuart_remove,
 	.driver		= {
 		.name	= "fsl-lpuart",
-		.owner	= THIS_MODULE,
 		.of_match_table = lpuart_dt_ids,
 		.pm	= &lpuart_pm_ops,
 	},

+ 0 - 1
drivers/tty/serial/imx.c

@@ -1952,7 +1952,6 @@ static struct platform_driver serial_imx_driver = {
 	.id_table	= imx_uart_devtype,
 	.driver		= {
 		.name	= "imx-uart",
-		.owner	= THIS_MODULE,
 		.of_match_table = imx_uart_dt_ids,
 	},
 };

+ 0 - 1
drivers/tty/serial/lantiq.c

@@ -743,7 +743,6 @@ MODULE_DEVICE_TABLE(of, ltq_asc_match);
 static struct platform_driver lqasc_driver = {
 	.driver		= {
 		.name	= DRVNAME,
-		.owner	= THIS_MODULE,
 		.of_match_table = ltq_asc_match,
 	},
 };

+ 0 - 1
drivers/tty/serial/lpc32xx_hs.c

@@ -768,7 +768,6 @@ static struct platform_driver serial_hs_lpc32xx_driver = {
 	.resume		= serial_hs_lpc32xx_resume,
 	.driver		= {
 		.name	= MODNAME,
-		.owner	= THIS_MODULE,
 		.of_match_table	= serial_hs_lpc32xx_dt_ids,
 	},
 };

+ 0 - 1
drivers/tty/serial/mcf.c

@@ -693,7 +693,6 @@ static struct platform_driver mcf_platform_driver = {
 	.remove		= mcf_remove,
 	.driver		= {
 		.name	= "mcfuart",
-		.owner	= THIS_MODULE,
 	},
 };
 

+ 0 - 1
drivers/tty/serial/meson_uart.c

@@ -599,7 +599,6 @@ static  struct platform_driver meson_uart_platform_driver = {
 	.probe		= meson_uart_probe,
 	.remove		= meson_uart_remove,
 	.driver		= {
-		.owner		= THIS_MODULE,
 		.name		= "meson_uart",
 		.of_match_table	= meson_uart_dt_match,
 	},

+ 0 - 1
drivers/tty/serial/mpc52xx_uart.c

@@ -1889,7 +1889,6 @@ static struct platform_driver mpc52xx_uart_of_driver = {
 #endif
 	.driver = {
 		.name = "mpc52xx-psc-uart",
-		.owner = THIS_MODULE,
 		.of_match_table = mpc52xx_uart_of_match,
 	},
 };

+ 0 - 1
drivers/tty/serial/mpsc.c

@@ -2111,7 +2111,6 @@ static struct platform_driver mpsc_driver = {
 	.remove	= mpsc_drv_remove,
 	.driver	= {
 		.name	= MPSC_CTLR_NAME,
-		.owner	= THIS_MODULE,
 	},
 };
 

+ 0 - 1
drivers/tty/serial/msm_serial.c

@@ -1114,7 +1114,6 @@ static struct platform_driver msm_platform_driver = {
 	.probe = msm_serial_probe,
 	.driver = {
 		.name = "msm_serial",
-		.owner = THIS_MODULE,
 		.of_match_table = msm_match_table,
 	},
 };

+ 0 - 1
drivers/tty/serial/msm_serial_hs.c

@@ -1838,7 +1838,6 @@ static struct platform_driver msm_serial_hs_platform_driver = {
 	.remove = msm_hs_remove,
 	.driver = {
 		.name = "msm_serial_hs",
-		.owner = THIS_MODULE,
 		.pm   = &msm_hs_dev_pm_ops,
 	},
 };

+ 0 - 1
drivers/tty/serial/mxs-auart.c

@@ -1123,7 +1123,6 @@ static struct platform_driver mxs_auart_driver = {
 	.remove = mxs_auart_remove,
 	.driver = {
 		.name = "mxs-auart",
-		.owner = THIS_MODULE,
 		.of_match_table = mxs_auart_dt_ids,
 	},
 };

+ 0 - 1
drivers/tty/serial/netx-serial.c

@@ -710,7 +710,6 @@ static struct platform_driver serial_netx_driver = {
 
 	.driver		= {
 		.name   = DRIVER_NAME,
-		.owner	= THIS_MODULE,
 	},
 };
 

+ 0 - 1
drivers/tty/serial/of_serial.c

@@ -295,7 +295,6 @@ static struct of_device_id of_platform_serial_table[] = {
 static struct platform_driver of_platform_serial_driver = {
 	.driver = {
 		.name = "of_serial",
-		.owner = THIS_MODULE,
 		.of_match_table = of_platform_serial_table,
 		.pm = &of_serial_pm_ops,
 	},

+ 0 - 1
drivers/tty/serial/pmac_zilog.c

@@ -1874,7 +1874,6 @@ static struct platform_driver pmz_driver = {
 	.remove		= __exit_p(pmz_detach),
 	.driver		= {
 		.name		= "scc",
-		.owner		= THIS_MODULE,
 	},
 };
 

+ 0 - 1
drivers/tty/serial/pnx8xxx_uart.c

@@ -813,7 +813,6 @@ static int pnx8xxx_serial_remove(struct platform_device *pdev)
 static struct platform_driver pnx8xxx_serial_driver = {
 	.driver		= {
 		.name	= "pnx8xxx-uart",
-		.owner	= THIS_MODULE,
 	},
 	.probe		= pnx8xxx_serial_probe,
 	.remove		= pnx8xxx_serial_remove,

+ 0 - 1
drivers/tty/serial/pxa.c

@@ -930,7 +930,6 @@ static struct platform_driver serial_pxa_driver = {
 
 	.driver		= {
 	        .name	= "pxa2xx-uart",
-		.owner	= THIS_MODULE,
 #ifdef CONFIG_PM
 		.pm	= &serial_pxa_pm_ops,
 #endif

+ 0 - 1
drivers/tty/serial/sa1100.c

@@ -883,7 +883,6 @@ static struct platform_driver sa11x0_serial_driver = {
 	.resume		= sa1100_serial_resume,
 	.driver		= {
 		.name	= "sa11x0-uart",
-		.owner	= THIS_MODULE,
 	},
 };
 

+ 0 - 1
drivers/tty/serial/samsung.c

@@ -1848,7 +1848,6 @@ static struct platform_driver samsung_serial_driver = {
 	.id_table	= s3c24xx_serial_driver_ids,
 	.driver		= {
 		.name	= "samsung-uart",
-		.owner	= THIS_MODULE,
 		.pm	= SERIAL_SAMSUNG_PM_OPS,
 		.of_match_table	= of_match_ptr(s3c24xx_uart_dt_match),
 	},

+ 0 - 1
drivers/tty/serial/sccnxp.c

@@ -1012,7 +1012,6 @@ static int sccnxp_remove(struct platform_device *pdev)
 static struct platform_driver sccnxp_uart_driver = {
 	.driver = {
 		.name	= SCCNXP_NAME,
-		.owner	= THIS_MODULE,
 	},
 	.probe		= sccnxp_probe,
 	.remove		= sccnxp_remove,

+ 0 - 1
drivers/tty/serial/serial_txx9.c

@@ -1165,7 +1165,6 @@ static struct platform_driver serial_txx9_plat_driver = {
 #endif
 	.driver		= {
 		.name	= "serial_txx9",
-		.owner	= THIS_MODULE,
 	},
 };
 

+ 0 - 1
drivers/tty/serial/sh-sci.c

@@ -2638,7 +2638,6 @@ static struct platform_driver sci_driver = {
 	.remove		= sci_remove,
 	.driver		= {
 		.name	= "sh-sci",
-		.owner	= THIS_MODULE,
 		.pm	= &sci_dev_pm_ops,
 		.of_match_table = of_match_ptr(of_sci_match),
 	},

+ 0 - 1
drivers/tty/serial/sirfsoc_uart.c

@@ -1477,7 +1477,6 @@ static struct platform_driver sirfsoc_uart_driver = {
 	.remove		= sirfsoc_uart_remove,
 	.driver		= {
 		.name	= SIRFUART_PORT_NAME,
-		.owner	= THIS_MODULE,
 		.of_match_table = sirfsoc_uart_ids,
 		.pm	= &sirfsoc_uart_pm_ops,
 	},

+ 0 - 1
drivers/tty/serial/st-asc.c

@@ -895,7 +895,6 @@ static struct platform_driver asc_serial_driver = {
 	.driver	= {
 		.name	= DRIVER_NAME,
 		.pm	= &asc_serial_pm_ops,
-		.owner	= THIS_MODULE,
 		.of_match_table = of_match_ptr(asc_match),
 	},
 };

+ 0 - 1
drivers/tty/serial/sunhv.c

@@ -626,7 +626,6 @@ MODULE_DEVICE_TABLE(of, hv_match);
 static struct platform_driver hv_driver = {
 	.driver = {
 		.name = "hv",
-		.owner = THIS_MODULE,
 		.of_match_table = hv_match,
 	},
 	.probe		= hv_probe,

+ 0 - 1
drivers/tty/serial/sunsab.c

@@ -1092,7 +1092,6 @@ MODULE_DEVICE_TABLE(of, sab_match);
 static struct platform_driver sab_driver = {
 	.driver = {
 		.name = "sab",
-		.owner = THIS_MODULE,
 		.of_match_table = sab_match,
 	},
 	.probe		= sab_probe,

+ 0 - 1
drivers/tty/serial/sunsu.c

@@ -1537,7 +1537,6 @@ MODULE_DEVICE_TABLE(of, su_match);
 static struct platform_driver su_driver = {
 	.driver = {
 		.name = "su",
-		.owner = THIS_MODULE,
 		.of_match_table = su_match,
 	},
 	.probe		= su_probe,

+ 0 - 1
drivers/tty/serial/sunzilog.c

@@ -1533,7 +1533,6 @@ MODULE_DEVICE_TABLE(of, zs_match);
 static struct platform_driver zs_driver = {
 	.driver = {
 		.name = "zs",
-		.owner = THIS_MODULE,
 		.of_match_table = zs_match,
 	},
 	.probe		= zs_probe,

+ 0 - 1
drivers/tty/serial/timbuart.c

@@ -501,7 +501,6 @@ static int timbuart_remove(struct platform_device *dev)
 static struct platform_driver timbuart_platform_driver = {
 	.driver = {
 		.name	= "timb-uart",
-		.owner	= THIS_MODULE,
 	},
 	.probe		= timbuart_probe,
 	.remove		= timbuart_remove,

+ 0 - 1
drivers/tty/serial/ucc_uart.c

@@ -1485,7 +1485,6 @@ MODULE_DEVICE_TABLE(of, ucc_uart_match);
 static struct platform_driver ucc_uart_of_driver = {
 	.driver = {
 		.name = "ucc_uart",
-		.owner = THIS_MODULE,
 		.of_match_table    = ucc_uart_match,
 	},
 	.probe  	= ucc_uart_probe,

+ 0 - 1
drivers/tty/serial/vr41xx_siu.c

@@ -954,7 +954,6 @@ static struct platform_driver siu_device_driver = {
 	.resume		= siu_resume,
 	.driver		= {
 		.name	= "SIU",
-		.owner	= THIS_MODULE,
 	},
 };
 

+ 0 - 1
drivers/tty/serial/vt8500_serial.c

@@ -745,7 +745,6 @@ static struct platform_driver vt8500_platform_driver = {
 	.remove = vt8500_serial_remove,
 	.driver = {
 		.name = "vt8500_serial",
-		.owner = THIS_MODULE,
 		.of_match_table = wmt_dt_ids,
 	},
 };