Commit 5cfb36eb authored by Wolfram Sang's avatar Wolfram Sang

mtd: nand: 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 fe5e4825
...@@ -290,7 +290,6 @@ static struct platform_driver ams_delta_nand_driver = { ...@@ -290,7 +290,6 @@ static struct platform_driver ams_delta_nand_driver = {
.remove = ams_delta_cleanup, .remove = ams_delta_cleanup,
.driver = { .driver = {
.name = "ams-delta-nand", .name = "ams-delta-nand",
.owner = THIS_MODULE,
}, },
}; };
......
...@@ -2312,7 +2312,6 @@ MODULE_DEVICE_TABLE(of, atmel_nand_nfc_match); ...@@ -2312,7 +2312,6 @@ MODULE_DEVICE_TABLE(of, atmel_nand_nfc_match);
static struct platform_driver atmel_nand_nfc_driver = { static struct platform_driver atmel_nand_nfc_driver = {
.driver = { .driver = {
.name = "atmel_nand_nfc", .name = "atmel_nand_nfc",
.owner = THIS_MODULE,
.of_match_table = of_match_ptr(atmel_nand_nfc_match), .of_match_table = of_match_ptr(atmel_nand_nfc_match),
}, },
.probe = atmel_nand_nfc_probe, .probe = atmel_nand_nfc_probe,
...@@ -2324,7 +2323,6 @@ static struct platform_driver atmel_nand_driver = { ...@@ -2324,7 +2323,6 @@ static struct platform_driver atmel_nand_driver = {
.remove = atmel_nand_remove, .remove = atmel_nand_remove,
.driver = { .driver = {
.name = "atmel_nand", .name = "atmel_nand",
.owner = THIS_MODULE,
.of_match_table = of_match_ptr(atmel_nand_dt_ids), .of_match_table = of_match_ptr(atmel_nand_dt_ids),
}, },
}; };
......
...@@ -503,7 +503,6 @@ static int au1550nd_remove(struct platform_device *pdev) ...@@ -503,7 +503,6 @@ static int au1550nd_remove(struct platform_device *pdev)
static struct platform_driver au1550nd_driver = { static struct platform_driver au1550nd_driver = {
.driver = { .driver = {
.name = "au1550-nand", .name = "au1550-nand",
.owner = THIS_MODULE,
}, },
.probe = au1550nd_probe, .probe = au1550nd_probe,
.remove = au1550nd_remove, .remove = au1550nd_remove,
......
...@@ -836,7 +836,6 @@ static struct platform_driver bf5xx_nand_driver = { ...@@ -836,7 +836,6 @@ static struct platform_driver bf5xx_nand_driver = {
.remove = bf5xx_nand_remove, .remove = bf5xx_nand_remove,
.driver = { .driver = {
.name = DRV_NAME, .name = DRV_NAME,
.owner = THIS_MODULE,
}, },
}; };
......
...@@ -870,7 +870,6 @@ static struct platform_driver nand_davinci_driver = { ...@@ -870,7 +870,6 @@ static struct platform_driver nand_davinci_driver = {
.remove = nand_davinci_remove, .remove = nand_davinci_remove,
.driver = { .driver = {
.name = "davinci_nand", .name = "davinci_nand",
.owner = THIS_MODULE,
.of_match_table = of_match_ptr(davinci_nand_of_match), .of_match_table = of_match_ptr(davinci_nand_of_match),
}, },
}; };
......
...@@ -120,7 +120,6 @@ static struct platform_driver denali_dt_driver = { ...@@ -120,7 +120,6 @@ static struct platform_driver denali_dt_driver = {
.remove = denali_dt_remove, .remove = denali_dt_remove,
.driver = { .driver = {
.name = "denali-nand-dt", .name = "denali-nand-dt",
.owner = THIS_MODULE,
.of_match_table = denali_nand_dt_ids, .of_match_table = denali_nand_dt_ids,
}, },
}; };
......
...@@ -1380,7 +1380,6 @@ static int __exit cleanup_docg4(struct platform_device *pdev) ...@@ -1380,7 +1380,6 @@ static int __exit cleanup_docg4(struct platform_device *pdev)
static struct platform_driver docg4_driver = { static struct platform_driver docg4_driver = {
.driver = { .driver = {
.name = "docg4", .name = "docg4",
.owner = THIS_MODULE,
}, },
.suspend = docg4_suspend, .suspend = docg4_suspend,
.resume = docg4_resume, .resume = docg4_resume,
......
...@@ -950,7 +950,6 @@ static const struct of_device_id fsl_elbc_nand_match[] = { ...@@ -950,7 +950,6 @@ static const struct of_device_id fsl_elbc_nand_match[] = {
static struct platform_driver fsl_elbc_nand_driver = { static struct platform_driver fsl_elbc_nand_driver = {
.driver = { .driver = {
.name = "fsl,elbc-fcm-nand", .name = "fsl,elbc-fcm-nand",
.owner = THIS_MODULE,
.of_match_table = fsl_elbc_nand_match, .of_match_table = fsl_elbc_nand_match,
}, },
.probe = fsl_elbc_nand_probe, .probe = fsl_elbc_nand_probe,
......
...@@ -1167,7 +1167,6 @@ static const struct of_device_id fsl_ifc_nand_match[] = { ...@@ -1167,7 +1167,6 @@ static const struct of_device_id fsl_ifc_nand_match[] = {
static struct platform_driver fsl_ifc_nand_driver = { static struct platform_driver fsl_ifc_nand_driver = {
.driver = { .driver = {
.name = "fsl,ifc-nand", .name = "fsl,ifc-nand",
.owner = THIS_MODULE,
.of_match_table = fsl_ifc_nand_match, .of_match_table = fsl_ifc_nand_match,
}, },
.probe = fsl_ifc_nand_probe, .probe = fsl_ifc_nand_probe,
......
...@@ -347,7 +347,6 @@ MODULE_DEVICE_TABLE(of, of_fun_match); ...@@ -347,7 +347,6 @@ MODULE_DEVICE_TABLE(of, of_fun_match);
static struct platform_driver of_fun_driver = { static struct platform_driver of_fun_driver = {
.driver = { .driver = {
.name = "fsl,upm-nand", .name = "fsl,upm-nand",
.owner = THIS_MODULE,
.of_match_table = of_fun_match, .of_match_table = of_fun_match,
}, },
.probe = fun_probe, .probe = fun_probe,
......
...@@ -1224,7 +1224,6 @@ MODULE_DEVICE_TABLE(of, fsmc_nand_id_table); ...@@ -1224,7 +1224,6 @@ MODULE_DEVICE_TABLE(of, fsmc_nand_id_table);
static struct platform_driver fsmc_nand_driver = { static struct platform_driver fsmc_nand_driver = {
.remove = fsmc_nand_remove, .remove = fsmc_nand_remove,
.driver = { .driver = {
.owner = THIS_MODULE,
.name = "fsmc-nand", .name = "fsmc-nand",
.of_match_table = of_match_ptr(fsmc_nand_id_table), .of_match_table = of_match_ptr(fsmc_nand_id_table),
.pm = &fsmc_nand_pm_ops, .pm = &fsmc_nand_pm_ops,
......
...@@ -308,7 +308,6 @@ static struct platform_driver gpio_nand_driver = { ...@@ -308,7 +308,6 @@ static struct platform_driver gpio_nand_driver = {
.remove = gpio_nand_remove, .remove = gpio_nand_remove,
.driver = { .driver = {
.name = "gpio-nand", .name = "gpio-nand",
.owner = THIS_MODULE,
.of_match_table = of_match_ptr(gpio_nand_id_table), .of_match_table = of_match_ptr(gpio_nand_id_table),
}, },
}; };
......
...@@ -577,7 +577,6 @@ static struct platform_driver jz_nand_driver = { ...@@ -577,7 +577,6 @@ static struct platform_driver jz_nand_driver = {
.remove = jz_nand_remove, .remove = jz_nand_remove,
.driver = { .driver = {
.name = "jz4740-nand", .name = "jz4740-nand",
.owner = THIS_MODULE,
}, },
}; };
......
...@@ -878,7 +878,6 @@ static struct platform_driver lpc32xx_nand_driver = { ...@@ -878,7 +878,6 @@ static struct platform_driver lpc32xx_nand_driver = {
.suspend = lpc32xx_nand_suspend, .suspend = lpc32xx_nand_suspend,
.driver = { .driver = {
.name = DRV_NAME, .name = DRV_NAME,
.owner = THIS_MODULE,
.of_match_table = lpc32xx_nand_match, .of_match_table = lpc32xx_nand_match,
}, },
}; };
......
...@@ -999,7 +999,6 @@ static struct platform_driver lpc32xx_nand_driver = { ...@@ -999,7 +999,6 @@ static struct platform_driver lpc32xx_nand_driver = {
.suspend = lpc32xx_nand_suspend, .suspend = lpc32xx_nand_suspend,
.driver = { .driver = {
.name = LPC32XX_MODNAME, .name = LPC32XX_MODNAME,
.owner = THIS_MODULE,
.of_match_table = lpc32xx_nand_match, .of_match_table = lpc32xx_nand_match,
}, },
}; };
......
...@@ -847,7 +847,6 @@ static struct platform_driver mpc5121_nfc_driver = { ...@@ -847,7 +847,6 @@ static struct platform_driver mpc5121_nfc_driver = {
.remove = mpc5121_nfc_remove, .remove = mpc5121_nfc_remove,
.driver = { .driver = {
.name = DRV_NAME, .name = DRV_NAME,
.owner = THIS_MODULE,
.of_match_table = mpc5121_nfc_match, .of_match_table = mpc5121_nfc_match,
}, },
}; };
......
...@@ -1600,7 +1600,6 @@ static int mxcnd_remove(struct platform_device *pdev) ...@@ -1600,7 +1600,6 @@ static int mxcnd_remove(struct platform_device *pdev)
static struct platform_driver mxcnd_driver = { static struct platform_driver mxcnd_driver = {
.driver = { .driver = {
.name = DRIVER_NAME, .name = DRIVER_NAME,
.owner = THIS_MODULE,
.of_match_table = of_match_ptr(mxcnd_dt_ids), .of_match_table = of_match_ptr(mxcnd_dt_ids),
}, },
.id_table = mxcnd_devtype, .id_table = mxcnd_devtype,
......
...@@ -277,7 +277,6 @@ MODULE_DEVICE_TABLE(of, ndfc_match); ...@@ -277,7 +277,6 @@ MODULE_DEVICE_TABLE(of, ndfc_match);
static struct platform_driver ndfc_driver = { static struct platform_driver ndfc_driver = {
.driver = { .driver = {
.name = "ndfc", .name = "ndfc",
.owner = THIS_MODULE,
.of_match_table = ndfc_match, .of_match_table = ndfc_match,
}, },
.probe = ndfc_probe, .probe = ndfc_probe,
......
...@@ -300,7 +300,6 @@ static struct platform_driver nuc900_nand_driver = { ...@@ -300,7 +300,6 @@ static struct platform_driver nuc900_nand_driver = {
.remove = nuc900_nand_remove, .remove = nuc900_nand_remove,
.driver = { .driver = {
.name = "nuc900-fmi", .name = "nuc900-fmi",
.owner = THIS_MODULE,
}, },
}; };
......
...@@ -2095,7 +2095,6 @@ static struct platform_driver omap_nand_driver = { ...@@ -2095,7 +2095,6 @@ static struct platform_driver omap_nand_driver = {
.remove = omap_nand_remove, .remove = omap_nand_remove,
.driver = { .driver = {
.name = DRIVER_NAME, .name = DRIVER_NAME,
.owner = THIS_MODULE,
}, },
}; };
......
...@@ -563,7 +563,6 @@ MODULE_DEVICE_TABLE(of, elm_of_match); ...@@ -563,7 +563,6 @@ MODULE_DEVICE_TABLE(of, elm_of_match);
static struct platform_driver elm_driver = { static struct platform_driver elm_driver = {
.driver = { .driver = {
.name = DRIVER_NAME, .name = DRIVER_NAME,
.owner = THIS_MODULE,
.of_match_table = of_match_ptr(elm_of_match), .of_match_table = of_match_ptr(elm_of_match),
.pm = &elm_pm_ops, .pm = &elm_pm_ops,
}, },
......
...@@ -224,7 +224,6 @@ static struct platform_driver orion_nand_driver = { ...@@ -224,7 +224,6 @@ static struct platform_driver orion_nand_driver = {
.remove = orion_nand_remove, .remove = orion_nand_remove,
.driver = { .driver = {
.name = "orion_nand", .name = "orion_nand",
.owner = THIS_MODULE,
.of_match_table = of_match_ptr(orion_nand_of_match_table), .of_match_table = of_match_ptr(orion_nand_of_match_table),
}, },
}; };
......
...@@ -223,7 +223,6 @@ static struct platform_driver pasemi_nand_driver = ...@@ -223,7 +223,6 @@ static struct platform_driver pasemi_nand_driver =
{ {
.driver = { .driver = {
.name = driver_name, .name = driver_name,
.owner = THIS_MODULE,
.of_match_table = pasemi_nand_match, .of_match_table = pasemi_nand_match,
}, },
.probe = pasemi_nand_probe, .probe = pasemi_nand_probe,
......
...@@ -138,7 +138,6 @@ static struct platform_driver plat_nand_driver = { ...@@ -138,7 +138,6 @@ static struct platform_driver plat_nand_driver = {
.remove = plat_nand_remove, .remove = plat_nand_remove,
.driver = { .driver = {
.name = "gen_nand", .name = "gen_nand",
.owner = THIS_MODULE,
.of_match_table = plat_nand_match, .of_match_table = plat_nand_match,
}, },
}; };
......
...@@ -1135,7 +1135,6 @@ static struct platform_driver s3c24xx_nand_driver = { ...@@ -1135,7 +1135,6 @@ static struct platform_driver s3c24xx_nand_driver = {
.id_table = s3c24xx_driver_ids, .id_table = s3c24xx_driver_ids,
.driver = { .driver = {
.name = "s3c24xx-nand", .name = "s3c24xx-nand",
.owner = THIS_MODULE,
}, },
}; };
......
...@@ -1190,7 +1190,6 @@ static struct platform_driver flctl_driver = { ...@@ -1190,7 +1190,6 @@ static struct platform_driver flctl_driver = {
.remove = flctl_remove, .remove = flctl_remove,
.driver = { .driver = {
.name = "sh_flctl", .name = "sh_flctl",
.owner = THIS_MODULE,
.of_match_table = of_match_ptr(of_flctl_match), .of_match_table = of_match_ptr(of_flctl_match),
}, },
}; };
......
...@@ -220,7 +220,6 @@ static int sharpsl_nand_remove(struct platform_device *pdev) ...@@ -220,7 +220,6 @@ static int sharpsl_nand_remove(struct platform_device *pdev)
static struct platform_driver sharpsl_nand_driver = { static struct platform_driver sharpsl_nand_driver = {
.driver = { .driver = {
.name = "sharpsl-nand", .name = "sharpsl-nand",
.owner = THIS_MODULE,
}, },
.probe = sharpsl_nand_probe, .probe = sharpsl_nand_probe,
.remove = sharpsl_nand_remove, .remove = sharpsl_nand_remove,
......
...@@ -240,7 +240,6 @@ MODULE_DEVICE_TABLE(of, socrates_nand_match); ...@@ -240,7 +240,6 @@ MODULE_DEVICE_TABLE(of, socrates_nand_match);
static struct platform_driver socrates_nand_driver = { static struct platform_driver socrates_nand_driver = {
.driver = { .driver = {
.name = "socrates_nand", .name = "socrates_nand",
.owner = THIS_MODULE,
.of_match_table = socrates_nand_match, .of_match_table = socrates_nand_match,
}, },
.probe = socrates_nand_probe, .probe = socrates_nand_probe,
......
...@@ -417,7 +417,6 @@ static struct platform_driver txx9ndfmc_driver = { ...@@ -417,7 +417,6 @@ static struct platform_driver txx9ndfmc_driver = {
.resume = txx9ndfmc_resume, .resume = txx9ndfmc_resume,
.driver = { .driver = {
.name = "txx9ndfmc", .name = "txx9ndfmc",
.owner = THIS_MODULE,
}, },
}; };
......
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