mirror of https://gitee.com/openkylin/linux.git
video: fbdev: 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
0ca4ac7fb3
commit
6a732becfd
|
@ -3782,7 +3782,6 @@ static struct platform_driver amifb_driver = {
|
|||
.remove = __exit_p(amifb_remove),
|
||||
.driver = {
|
||||
.name = "amiga-video",
|
||||
.owner = THIS_MODULE,
|
||||
},
|
||||
};
|
||||
|
||||
|
|
|
@ -1466,7 +1466,6 @@ static struct platform_driver atmel_lcdfb_driver = {
|
|||
.id_table = atmel_lcdfb_devtypes,
|
||||
.driver = {
|
||||
.name = "atmel_lcdfb",
|
||||
.owner = THIS_MODULE,
|
||||
.of_match_table = of_match_ptr(atmel_lcdfb_dt_ids),
|
||||
},
|
||||
};
|
||||
|
|
|
@ -638,7 +638,6 @@ int au1100fb_drv_resume(struct platform_device *dev)
|
|||
static struct platform_driver au1100fb_driver = {
|
||||
.driver = {
|
||||
.name = "au1100-lcd",
|
||||
.owner = THIS_MODULE,
|
||||
},
|
||||
.probe = au1100fb_drv_probe,
|
||||
.remove = au1100fb_drv_remove,
|
||||
|
|
|
@ -1841,7 +1841,6 @@ static const struct dev_pm_ops au1200fb_pmops = {
|
|||
static struct platform_driver au1200fb_driver = {
|
||||
.driver = {
|
||||
.name = "au1200-lcd",
|
||||
.owner = THIS_MODULE,
|
||||
.pm = AU1200FB_PMOPS,
|
||||
},
|
||||
.probe = au1200fb_drv_probe,
|
||||
|
|
|
@ -193,7 +193,6 @@ static struct platform_driver auok1900fb_driver = {
|
|||
.probe = auok1900fb_probe,
|
||||
.remove = auok1900fb_remove,
|
||||
.driver = {
|
||||
.owner = THIS_MODULE,
|
||||
.name = "auo_k1900fb",
|
||||
.pm = &auok190x_pm,
|
||||
},
|
||||
|
|
|
@ -246,7 +246,6 @@ static struct platform_driver auok1901fb_driver = {
|
|||
.probe = auok1901fb_probe,
|
||||
.remove = auok1901fb_remove,
|
||||
.driver = {
|
||||
.owner = THIS_MODULE,
|
||||
.name = "auo_k1901fb",
|
||||
.pm = &auok190x_pm,
|
||||
},
|
||||
|
|
|
@ -894,7 +894,6 @@ static struct platform_driver bfin_lq035_driver = {
|
|||
.resume = bfin_lq035_resume,
|
||||
.driver = {
|
||||
.name = KBUILD_MODNAME,
|
||||
.owner = THIS_MODULE,
|
||||
},
|
||||
};
|
||||
|
||||
|
|
|
@ -756,7 +756,6 @@ static struct platform_driver bfin_bf54x_driver = {
|
|||
.resume = bfin_bf54x_resume,
|
||||
.driver = {
|
||||
.name = DRIVER_NAME,
|
||||
.owner = THIS_MODULE,
|
||||
},
|
||||
};
|
||||
module_platform_driver(bfin_bf54x_driver);
|
||||
|
|
|
@ -661,7 +661,6 @@ static struct platform_driver bfin_t350mcqb_driver = {
|
|||
.resume = bfin_t350mcqb_resume,
|
||||
.driver = {
|
||||
.name = DRIVER_NAME,
|
||||
.owner = THIS_MODULE,
|
||||
},
|
||||
};
|
||||
module_platform_driver(bfin_t350mcqb_driver);
|
||||
|
|
|
@ -1212,7 +1212,6 @@ static struct platform_driver broadsheetfb_driver = {
|
|||
.probe = broadsheetfb_probe,
|
||||
.remove = broadsheetfb_remove,
|
||||
.driver = {
|
||||
.owner = THIS_MODULE,
|
||||
.name = "broadsheetfb",
|
||||
},
|
||||
};
|
||||
|
|
|
@ -377,7 +377,6 @@ MODULE_DEVICE_TABLE(of, bw2_match);
|
|||
static struct platform_driver bw2_driver = {
|
||||
.driver = {
|
||||
.name = "bw2",
|
||||
.owner = THIS_MODULE,
|
||||
.of_match_table = bw2_match,
|
||||
},
|
||||
.probe = bw2_probe,
|
||||
|
|
|
@ -597,7 +597,6 @@ MODULE_DEVICE_TABLE(of, cg14_match);
|
|||
static struct platform_driver cg14_driver = {
|
||||
.driver = {
|
||||
.name = "cg14",
|
||||
.owner = THIS_MODULE,
|
||||
.of_match_table = cg14_match,
|
||||
},
|
||||
.probe = cg14_probe,
|
||||
|
|
|
@ -463,7 +463,6 @@ MODULE_DEVICE_TABLE(of, cg3_match);
|
|||
static struct platform_driver cg3_driver = {
|
||||
.driver = {
|
||||
.name = "cg3",
|
||||
.owner = THIS_MODULE,
|
||||
.of_match_table = cg3_match,
|
||||
},
|
||||
.probe = cg3_probe,
|
||||
|
|
|
@ -856,7 +856,6 @@ MODULE_DEVICE_TABLE(of, cg6_match);
|
|||
static struct platform_driver cg6_driver = {
|
||||
.driver = {
|
||||
.name = "cg6",
|
||||
.owner = THIS_MODULE,
|
||||
.of_match_table = cg6_match,
|
||||
},
|
||||
.probe = cg6_probe,
|
||||
|
|
|
@ -384,7 +384,6 @@ MODULE_DEVICE_TABLE(of, clps711x_fb_dt_ids);
|
|||
static struct platform_driver clps711x_fb_driver = {
|
||||
.driver = {
|
||||
.name = CLPS711X_FB_NAME,
|
||||
.owner = THIS_MODULE,
|
||||
.of_match_table = clps711x_fb_dt_ids,
|
||||
},
|
||||
.probe = clps711x_fb_probe,
|
||||
|
|
|
@ -303,7 +303,6 @@ static int clps711x_fb_remove(struct platform_device *pdev)
|
|||
static struct platform_driver clps711x_fb_driver = {
|
||||
.driver = {
|
||||
.name = "video-clps711x",
|
||||
.owner = THIS_MODULE,
|
||||
},
|
||||
.probe = clps711x_fb_probe,
|
||||
.remove = clps711x_fb_remove,
|
||||
|
|
|
@ -391,7 +391,6 @@ static struct platform_driver cobalt_lcdfb_driver = {
|
|||
.remove = cobalt_lcdfb_remove,
|
||||
.driver = {
|
||||
.name = "cobalt-lcd",
|
||||
.owner = THIS_MODULE,
|
||||
},
|
||||
};
|
||||
module_platform_driver(cobalt_lcdfb_driver);
|
||||
|
|
|
@ -1659,7 +1659,6 @@ static struct platform_driver da8xx_fb_driver = {
|
|||
.remove = fb_remove,
|
||||
.driver = {
|
||||
.name = DRIVER_NAME,
|
||||
.owner = THIS_MODULE,
|
||||
.pm = &fb_pm_ops,
|
||||
},
|
||||
};
|
||||
|
|
|
@ -311,7 +311,6 @@ static int efifb_remove(struct platform_device *pdev)
|
|||
static struct platform_driver efifb_driver = {
|
||||
.driver = {
|
||||
.name = "efi-framebuffer",
|
||||
.owner = THIS_MODULE,
|
||||
},
|
||||
.probe = efifb_probe,
|
||||
.remove = efifb_remove,
|
||||
|
|
|
@ -622,7 +622,6 @@ static struct platform_driver ep93xxfb_driver = {
|
|||
.remove = ep93xxfb_remove,
|
||||
.driver = {
|
||||
.name = "ep93xx-fb",
|
||||
.owner = THIS_MODULE,
|
||||
},
|
||||
};
|
||||
module_platform_driver(ep93xxfb_driver);
|
||||
|
|
|
@ -1052,7 +1052,6 @@ MODULE_DEVICE_TABLE(of, ffb_match);
|
|||
static struct platform_driver ffb_driver = {
|
||||
.driver = {
|
||||
.name = "ffb",
|
||||
.owner = THIS_MODULE,
|
||||
.of_match_table = ffb_match,
|
||||
},
|
||||
.probe = ffb_probe,
|
||||
|
|
|
@ -1881,7 +1881,6 @@ MODULE_DEVICE_TABLE(of, fsl_diu_match);
|
|||
static struct platform_driver fsl_diu_driver = {
|
||||
.driver = {
|
||||
.name = "fsl-diu-fb",
|
||||
.owner = THIS_MODULE,
|
||||
.of_match_table = fsl_diu_match,
|
||||
},
|
||||
.probe = fsl_diu_probe,
|
||||
|
|
|
@ -549,7 +549,6 @@ MODULE_DEVICE_TABLE(of, svgactrl_of_match);
|
|||
static struct platform_driver grvga_driver = {
|
||||
.driver = {
|
||||
.name = "grlib-svgactrl",
|
||||
.owner = THIS_MODULE,
|
||||
.of_match_table = svgactrl_of_match,
|
||||
},
|
||||
.probe = grvga_probe,
|
||||
|
|
|
@ -300,7 +300,6 @@ static struct platform_driver hecubafb_driver = {
|
|||
.probe = hecubafb_probe,
|
||||
.remove = hecubafb_remove,
|
||||
.driver = {
|
||||
.owner = THIS_MODULE,
|
||||
.name = "hecubafb",
|
||||
},
|
||||
};
|
||||
|
|
|
@ -464,7 +464,6 @@ static struct platform_driver hitfb_driver = {
|
|||
.remove = hitfb_remove,
|
||||
.driver = {
|
||||
.name = "hitfb",
|
||||
.owner = THIS_MODULE,
|
||||
.pm = &hitfb_dev_pm_ops,
|
||||
},
|
||||
};
|
||||
|
|
|
@ -1061,7 +1061,6 @@ static struct platform_driver imxfb_driver = {
|
|||
.driver = {
|
||||
.name = DRIVER_NAME,
|
||||
.of_match_table = imxfb_of_dev_id,
|
||||
.owner = THIS_MODULE,
|
||||
.pm = &imxfb_pm_ops,
|
||||
},
|
||||
.probe = imxfb_probe,
|
||||
|
|
|
@ -662,7 +662,6 @@ MODULE_DEVICE_TABLE(of, leo_match);
|
|||
static struct platform_driver leo_driver = {
|
||||
.driver = {
|
||||
.name = "leo",
|
||||
.owner = THIS_MODULE,
|
||||
.of_match_table = leo_match,
|
||||
},
|
||||
.probe = leo_probe,
|
||||
|
|
|
@ -766,7 +766,6 @@ static struct platform_driver metronomefb_driver = {
|
|||
.probe = metronomefb_probe,
|
||||
.remove = metronomefb_remove,
|
||||
.driver = {
|
||||
.owner = THIS_MODULE,
|
||||
.name = "metronomefb",
|
||||
},
|
||||
};
|
||||
|
|
|
@ -1646,7 +1646,6 @@ static int mx3fb_remove(struct platform_device *dev)
|
|||
static struct platform_driver mx3fb_driver = {
|
||||
.driver = {
|
||||
.name = MX3FB_NAME,
|
||||
.owner = THIS_MODULE,
|
||||
},
|
||||
.probe = mx3fb_probe,
|
||||
.remove = mx3fb_remove,
|
||||
|
|
|
@ -755,7 +755,6 @@ static struct platform_driver nuc900fb_driver = {
|
|||
.resume = nuc900fb_resume,
|
||||
.driver = {
|
||||
.name = "nuc900-lcd",
|
||||
.owner = THIS_MODULE,
|
||||
},
|
||||
};
|
||||
|
||||
|
|
|
@ -353,7 +353,6 @@ MODULE_DEVICE_TABLE(of, p9100_match);
|
|||
static struct platform_driver p9100_driver = {
|
||||
.driver = {
|
||||
.name = "p9100",
|
||||
.owner = THIS_MODULE,
|
||||
.of_match_table = p9100_match,
|
||||
},
|
||||
.probe = p9100_probe,
|
||||
|
|
|
@ -679,7 +679,6 @@ static struct platform_driver platinum_driver =
|
|||
{
|
||||
.driver = {
|
||||
.name = "platinumfb",
|
||||
.owner = THIS_MODULE,
|
||||
.of_match_table = platinumfb_match,
|
||||
},
|
||||
.probe = platinumfb_probe,
|
||||
|
|
|
@ -823,7 +823,6 @@ static int pxa168fb_remove(struct platform_device *pdev)
|
|||
static struct platform_driver pxa168fb_driver = {
|
||||
.driver = {
|
||||
.name = "pxa168-fb",
|
||||
.owner = THIS_MODULE,
|
||||
},
|
||||
.probe = pxa168fb_probe,
|
||||
.remove = pxa168fb_remove,
|
||||
|
|
|
@ -707,7 +707,6 @@ static struct platform_driver pxa3xx_gcu_driver = {
|
|||
.probe = pxa3xx_gcu_probe,
|
||||
.remove = pxa3xx_gcu_remove,
|
||||
.driver = {
|
||||
.owner = THIS_MODULE,
|
||||
.name = DRV_NAME,
|
||||
},
|
||||
};
|
||||
|
|
|
@ -2304,7 +2304,6 @@ static struct platform_driver pxafb_driver = {
|
|||
.probe = pxafb_probe,
|
||||
.remove = pxafb_remove,
|
||||
.driver = {
|
||||
.owner = THIS_MODULE,
|
||||
.name = "pxa2xx-fb",
|
||||
#ifdef CONFIG_PM
|
||||
.pm = &pxafb_pm_ops,
|
||||
|
|
|
@ -1971,7 +1971,6 @@ static struct platform_driver s3c_fb_driver = {
|
|||
.id_table = s3c_fb_driver_ids,
|
||||
.driver = {
|
||||
.name = "s3c-fb",
|
||||
.owner = THIS_MODULE,
|
||||
.pm = &s3cfb_pm_ops,
|
||||
},
|
||||
};
|
||||
|
|
|
@ -1104,7 +1104,6 @@ static struct platform_driver s3c2410fb_driver = {
|
|||
.resume = s3c2410fb_resume,
|
||||
.driver = {
|
||||
.name = "s3c2410-lcd",
|
||||
.owner = THIS_MODULE,
|
||||
},
|
||||
};
|
||||
|
||||
|
@ -1115,7 +1114,6 @@ static struct platform_driver s3c2412fb_driver = {
|
|||
.resume = s3c2410fb_resume,
|
||||
.driver = {
|
||||
.name = "s3c2412-lcd",
|
||||
.owner = THIS_MODULE,
|
||||
},
|
||||
};
|
||||
|
||||
|
|
|
@ -1288,7 +1288,6 @@ static struct platform_driver sa1100fb_driver = {
|
|||
.resume = sa1100fb_resume,
|
||||
.driver = {
|
||||
.name = "sa11x0-fb",
|
||||
.owner = THIS_MODULE,
|
||||
},
|
||||
};
|
||||
|
||||
|
|
|
@ -578,7 +578,6 @@ static int sh7760fb_remove(struct platform_device *dev)
|
|||
static struct platform_driver sh7760_lcdc_driver = {
|
||||
.driver = {
|
||||
.name = "sh7760-lcdc",
|
||||
.owner = THIS_MODULE,
|
||||
},
|
||||
.probe = sh7760fb_probe,
|
||||
.remove = sh7760fb_remove,
|
||||
|
|
|
@ -2849,7 +2849,6 @@ static int sh_mobile_lcdc_probe(struct platform_device *pdev)
|
|||
static struct platform_driver sh_mobile_lcdc_driver = {
|
||||
.driver = {
|
||||
.name = "sh_mobile_lcdc_fb",
|
||||
.owner = THIS_MODULE,
|
||||
.pm = &sh_mobile_lcdc_dev_pm_ops,
|
||||
},
|
||||
.probe = sh_mobile_lcdc_probe,
|
||||
|
|
|
@ -745,7 +745,6 @@ static int sh_mobile_meram_remove(struct platform_device *pdev)
|
|||
static struct platform_driver sh_mobile_meram_driver = {
|
||||
.driver = {
|
||||
.name = "sh_mobile_meram",
|
||||
.owner = THIS_MODULE,
|
||||
.pm = &sh_mobile_meram_dev_pm_ops,
|
||||
},
|
||||
.probe = sh_mobile_meram_probe,
|
||||
|
|
|
@ -267,7 +267,6 @@ MODULE_DEVICE_TABLE(of, simplefb_of_match);
|
|||
static struct platform_driver simplefb_driver = {
|
||||
.driver = {
|
||||
.name = "simple-framebuffer",
|
||||
.owner = THIS_MODULE,
|
||||
.of_match_table = simplefb_of_match,
|
||||
},
|
||||
.probe = simplefb_probe,
|
||||
|
|
|
@ -2224,7 +2224,6 @@ static struct platform_driver sm501fb_driver = {
|
|||
.resume = sm501fb_resume,
|
||||
.driver = {
|
||||
.name = "sm501-fb",
|
||||
.owner = THIS_MODULE,
|
||||
},
|
||||
};
|
||||
|
||||
|
|
|
@ -202,7 +202,6 @@ static struct platform_driver gfb_driver = {
|
|||
.remove = gfb_remove,
|
||||
.driver = {
|
||||
.name = "gfb",
|
||||
.owner = THIS_MODULE,
|
||||
.of_match_table = gfb_match,
|
||||
},
|
||||
};
|
||||
|
|
|
@ -512,7 +512,6 @@ MODULE_DEVICE_TABLE(of, tcx_match);
|
|||
static struct platform_driver tcx_driver = {
|
||||
.driver = {
|
||||
.name = "tcx",
|
||||
.owner = THIS_MODULE,
|
||||
.of_match_table = tcx_match,
|
||||
},
|
||||
.probe = tcx_probe,
|
||||
|
|
|
@ -512,7 +512,6 @@ static int vesafb_remove(struct platform_device *pdev)
|
|||
static struct platform_driver vesafb_driver = {
|
||||
.driver = {
|
||||
.name = "vesa-framebuffer",
|
||||
.owner = THIS_MODULE,
|
||||
},
|
||||
.probe = vesafb_probe,
|
||||
.remove = vesafb_remove,
|
||||
|
|
|
@ -486,7 +486,6 @@ static struct platform_driver vt8500lcd_driver = {
|
|||
.probe = vt8500lcd_probe,
|
||||
.remove = vt8500lcd_remove,
|
||||
.driver = {
|
||||
.owner = THIS_MODULE,
|
||||
.name = "vt8500-lcd",
|
||||
.of_match_table = of_match_ptr(via_dt_ids),
|
||||
},
|
||||
|
|
|
@ -407,7 +407,6 @@ static struct platform_driver wm8505fb_driver = {
|
|||
.probe = wm8505fb_probe,
|
||||
.remove = wm8505fb_remove,
|
||||
.driver = {
|
||||
.owner = THIS_MODULE,
|
||||
.name = DRIVER_NAME,
|
||||
.of_match_table = wmt_dt_ids,
|
||||
},
|
||||
|
|
|
@ -167,7 +167,6 @@ static struct platform_driver wmt_ge_rops_driver = {
|
|||
.probe = wmt_ge_rops_probe,
|
||||
.remove = wmt_ge_rops_remove,
|
||||
.driver = {
|
||||
.owner = THIS_MODULE,
|
||||
.name = "wmt_ge_rops",
|
||||
.of_match_table = wmt_dt_ids,
|
||||
},
|
||||
|
|
|
@ -497,7 +497,6 @@ static struct platform_driver xilinxfb_of_driver = {
|
|||
.remove = xilinxfb_of_remove,
|
||||
.driver = {
|
||||
.name = DRIVER_NAME,
|
||||
.owner = THIS_MODULE,
|
||||
.of_match_table = xilinxfb_of_match,
|
||||
},
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue