Use new device_platform_driver() macro for drivers
Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
12ff763535
commit
6a256321b8
|
@ -89,13 +89,7 @@ static struct driver_d hf_drv = {
|
||||||
.probe = hf_probe,
|
.probe = hf_probe,
|
||||||
.info = hf_info,
|
.info = hf_info,
|
||||||
};
|
};
|
||||||
|
device_platform_driver(hf_drv);
|
||||||
static int hf_init(void)
|
|
||||||
{
|
|
||||||
return platform_driver_register(&hf_drv);
|
|
||||||
}
|
|
||||||
|
|
||||||
device_initcall(hf_init);
|
|
||||||
|
|
||||||
int barebox_register_filedev(struct hf_platform_data *hf)
|
int barebox_register_filedev(struct hf_platform_data *hf)
|
||||||
{
|
{
|
||||||
|
|
|
@ -669,10 +669,4 @@ static struct driver_d ahci_driver = {
|
||||||
.probe = ahci_probe,
|
.probe = ahci_probe,
|
||||||
.info = ahci_info,
|
.info = ahci_info,
|
||||||
};
|
};
|
||||||
|
device_platform_driver(ahci_driver);
|
||||||
static int ahci_init(void)
|
|
||||||
{
|
|
||||||
return platform_driver_register(&ahci_driver);
|
|
||||||
}
|
|
||||||
|
|
||||||
device_initcall(ahci_init);
|
|
||||||
|
|
|
@ -108,13 +108,7 @@ static struct driver_d platform_ide_driver = {
|
||||||
.name = "ide_intf",
|
.name = "ide_intf",
|
||||||
.probe = platform_ide_probe,
|
.probe = platform_ide_probe,
|
||||||
};
|
};
|
||||||
|
device_platform_driver(platform_ide_driver);
|
||||||
static int platform_ide_init(void)
|
|
||||||
{
|
|
||||||
return platform_driver_register(&platform_ide_driver);
|
|
||||||
}
|
|
||||||
|
|
||||||
device_initcall(platform_ide_init);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @file
|
* @file
|
||||||
|
|
|
@ -194,10 +194,4 @@ static struct driver_d imx_pata_driver = {
|
||||||
.name = "imx-pata",
|
.name = "imx-pata",
|
||||||
.probe = imx_pata_probe,
|
.probe = imx_pata_probe,
|
||||||
};
|
};
|
||||||
|
device_platform_driver(imx_pata_driver);
|
||||||
static int imx_pata_init(void)
|
|
||||||
{
|
|
||||||
return platform_driver_register(&imx_pata_driver);
|
|
||||||
}
|
|
||||||
|
|
||||||
device_initcall(imx_pata_init);
|
|
||||||
|
|
|
@ -146,10 +146,4 @@ static struct driver_d imx_sata_driver = {
|
||||||
.info = ahci_info,
|
.info = ahci_info,
|
||||||
.id_table = imx_sata_ids,
|
.id_table = imx_sata_ids,
|
||||||
};
|
};
|
||||||
|
device_platform_driver(imx_sata_driver);
|
||||||
static int ahci_init(void)
|
|
||||||
{
|
|
||||||
return platform_driver_register(&imx_sata_driver);
|
|
||||||
}
|
|
||||||
|
|
||||||
device_initcall(ahci_init);
|
|
||||||
|
|
|
@ -169,9 +169,4 @@ static struct driver_d i2c_gpio_driver = {
|
||||||
.name = "i2c-gpio",
|
.name = "i2c-gpio",
|
||||||
.probe = i2c_gpio_probe,
|
.probe = i2c_gpio_probe,
|
||||||
};
|
};
|
||||||
|
device_platform_driver(i2c_gpio_driver);
|
||||||
static int __init i2c_gpio_init(void)
|
|
||||||
{
|
|
||||||
return platform_driver_register(&i2c_gpio_driver);
|
|
||||||
}
|
|
||||||
device_initcall(i2c_gpio_init);
|
|
||||||
|
|
|
@ -576,9 +576,4 @@ static struct driver_d i2c_fsl_driver = {
|
||||||
.probe = i2c_fsl_probe,
|
.probe = i2c_fsl_probe,
|
||||||
.name = DRIVER_NAME,
|
.name = DRIVER_NAME,
|
||||||
};
|
};
|
||||||
|
device_platform_driver(i2c_fsl_driver);
|
||||||
static int __init i2c_adap_fsl_init(void)
|
|
||||||
{
|
|
||||||
return platform_driver_register(&i2c_fsl_driver);
|
|
||||||
}
|
|
||||||
device_initcall(i2c_adap_fsl_init);
|
|
||||||
|
|
|
@ -860,13 +860,7 @@ static struct driver_d omap_i2c_driver = {
|
||||||
.probe = i2c_omap_probe,
|
.probe = i2c_omap_probe,
|
||||||
.name = DRIVER_NAME,
|
.name = DRIVER_NAME,
|
||||||
};
|
};
|
||||||
|
device_platform_driver(omap_i2c_driver);
|
||||||
/* I2C may be needed to bring up other drivers */
|
|
||||||
static int __init omap_i2c_init_driver(void)
|
|
||||||
{
|
|
||||||
return platform_driver_register(&omap_i2c_driver);
|
|
||||||
}
|
|
||||||
device_initcall(omap_i2c_init_driver);
|
|
||||||
|
|
||||||
MODULE_AUTHOR("MontaVista Software, Inc. (and others)");
|
MODULE_AUTHOR("MontaVista Software, Inc. (and others)");
|
||||||
MODULE_DESCRIPTION("TI OMAP I2C bus adapter");
|
MODULE_DESCRIPTION("TI OMAP I2C bus adapter");
|
||||||
|
|
|
@ -103,10 +103,4 @@ static struct driver_d i2c_versatile_driver = {
|
||||||
.name = "versatile-i2c",
|
.name = "versatile-i2c",
|
||||||
.probe = i2c_versatile_probe,
|
.probe = i2c_versatile_probe,
|
||||||
};
|
};
|
||||||
|
device_platform_driver(i2c_versatile_driver);
|
||||||
static int __init i2c_versatile_init(void)
|
|
||||||
{
|
|
||||||
return platform_driver_register(&i2c_versatile_driver);
|
|
||||||
}
|
|
||||||
|
|
||||||
device_initcall(i2c_versatile_init);
|
|
||||||
|
|
|
@ -106,10 +106,4 @@ static struct driver_d gpio_keys_driver = {
|
||||||
.name = "gpio_keys",
|
.name = "gpio_keys",
|
||||||
.probe = gpio_keys_probe,
|
.probe = gpio_keys_probe,
|
||||||
};
|
};
|
||||||
|
device_platform_driver(gpio_keys_driver);
|
||||||
static int gpio_keys_init(void)
|
|
||||||
{
|
|
||||||
platform_driver_register(&gpio_keys_driver);
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
device_initcall(gpio_keys_init);
|
|
||||||
|
|
|
@ -454,10 +454,4 @@ static struct driver_d imx_keypad_driver = {
|
||||||
.name = "imx-kpp",
|
.name = "imx-kpp",
|
||||||
.probe = imx_keypad_probe,
|
.probe = imx_keypad_probe,
|
||||||
};
|
};
|
||||||
|
device_platform_driver(imx_keypad_driver);
|
||||||
static int imx_keypad_init(void)
|
|
||||||
{
|
|
||||||
platform_driver_register(&imx_keypad_driver);
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
device_initcall(imx_keypad_init);
|
|
||||||
|
|
|
@ -619,10 +619,4 @@ static struct driver_d atmci_driver = {
|
||||||
.info = atmci_info,
|
.info = atmci_info,
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
device_platform_driver(atmci_driver);
|
||||||
static int atmci_init_driver(void)
|
|
||||||
{
|
|
||||||
platform_driver_register(&atmci_driver);
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
device_initcall(atmci_init_driver);
|
|
||||||
|
|
|
@ -583,11 +583,4 @@ static struct driver_d fsl_esdhc_driver = {
|
||||||
.probe = fsl_esdhc_probe,
|
.probe = fsl_esdhc_probe,
|
||||||
.of_compatible = DRV_OF_COMPAT(fsl_esdhc_compatible),
|
.of_compatible = DRV_OF_COMPAT(fsl_esdhc_compatible),
|
||||||
};
|
};
|
||||||
|
device_platform_driver(fsl_esdhc_driver);
|
||||||
static int fsl_esdhc_init_driver(void)
|
|
||||||
{
|
|
||||||
platform_driver_register(&fsl_esdhc_driver);
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
device_initcall(fsl_esdhc_init_driver);
|
|
||||||
|
|
|
@ -524,12 +524,4 @@ static struct driver_d mxcmci_driver = {
|
||||||
.name = DRIVER_NAME,
|
.name = DRIVER_NAME,
|
||||||
.probe = mxcmci_probe,
|
.probe = mxcmci_probe,
|
||||||
};
|
};
|
||||||
|
device_platform_driver(mxcmci_driver);
|
||||||
static int mxcmci_init_driver(void)
|
|
||||||
{
|
|
||||||
platform_driver_register(&mxcmci_driver);
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
device_initcall(mxcmci_init_driver);
|
|
||||||
|
|
||||||
|
|
|
@ -760,11 +760,4 @@ static struct driver_d mxs_mci_driver = {
|
||||||
.info = mxs_mci_info,
|
.info = mxs_mci_info,
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
device_platform_driver(mxs_mci_driver);
|
||||||
static int mxs_mci_init_driver(void)
|
|
||||||
{
|
|
||||||
platform_driver_register(&mxs_mci_driver);
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
device_initcall(mxs_mci_init_driver);
|
|
||||||
|
|
|
@ -630,11 +630,4 @@ static struct driver_d omap_mmc_driver = {
|
||||||
.probe = omap_mmc_probe,
|
.probe = omap_mmc_probe,
|
||||||
.id_table = omap_mmc_ids,
|
.id_table = omap_mmc_ids,
|
||||||
};
|
};
|
||||||
|
device_platform_driver(omap_mmc_driver);
|
||||||
static int omap_mmc_init_driver(void)
|
|
||||||
{
|
|
||||||
platform_driver_register(&omap_mmc_driver);
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
device_initcall(omap_mmc_init_driver);
|
|
||||||
|
|
|
@ -378,11 +378,4 @@ static struct driver_d pxamci_driver = {
|
||||||
.name = DRIVER_NAME,
|
.name = DRIVER_NAME,
|
||||||
.probe = pxamci_probe,
|
.probe = pxamci_probe,
|
||||||
};
|
};
|
||||||
|
device_platform_driver(pxamci_driver);
|
||||||
static int __init pxamci_init_driver(void)
|
|
||||||
{
|
|
||||||
platform_driver_register(&pxamci_driver);
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
device_initcall(pxamci_init_driver);
|
|
||||||
|
|
|
@ -767,11 +767,4 @@ static struct driver_d s3c_mci_driver = {
|
||||||
.info = s3c_info,
|
.info = s3c_info,
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
device_platform_driver(s3c_mci_driver);
|
||||||
static int s3c_mci_init_driver(void)
|
|
||||||
{
|
|
||||||
platform_driver_register(&s3c_mci_driver);
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
device_initcall(s3c_mci_init_driver);
|
|
||||||
|
|
|
@ -376,13 +376,7 @@ static struct driver_d jtag_driver = {
|
||||||
.remove = jtag_remove,
|
.remove = jtag_remove,
|
||||||
.info = jtag_info,
|
.info = jtag_info,
|
||||||
};
|
};
|
||||||
|
device_platform_driver(jtag_driver);
|
||||||
static int jtag_module_init(void)
|
|
||||||
{
|
|
||||||
return platform_driver_register(&jtag_driver);
|
|
||||||
}
|
|
||||||
|
|
||||||
device_initcall(jtag_module_init);
|
|
||||||
|
|
||||||
MODULE_AUTHOR("Davide Rizzo <elpa.rizzo@gmail.com>");
|
MODULE_AUTHOR("Davide Rizzo <elpa.rizzo@gmail.com>");
|
||||||
MODULE_AUTHOR("Wjatscheslaw Stoljarski <wjatscheslaw.stoljarski@kiwigrid.com>");
|
MODULE_AUTHOR("Wjatscheslaw Stoljarski <wjatscheslaw.stoljarski@kiwigrid.com>");
|
||||||
|
|
|
@ -1199,10 +1199,4 @@ static struct driver_d g3_driver = {
|
||||||
.name = "docg3",
|
.name = "docg3",
|
||||||
.probe = docg3_probe,
|
.probe = docg3_probe,
|
||||||
};
|
};
|
||||||
|
device_platform_driver(g3_driver);
|
||||||
static int __init docg3_init(void)
|
|
||||||
{
|
|
||||||
return platform_driver_register(&g3_driver);
|
|
||||||
}
|
|
||||||
|
|
||||||
device_initcall(docg3_init);
|
|
||||||
|
|
|
@ -1242,13 +1242,7 @@ static struct driver_d atmel_nand_driver = {
|
||||||
.name = "atmel_nand",
|
.name = "atmel_nand",
|
||||||
.probe = atmel_nand_probe,
|
.probe = atmel_nand_probe,
|
||||||
};
|
};
|
||||||
|
device_platform_driver(atmel_nand_driver);
|
||||||
static int __init atmel_nand_init(void)
|
|
||||||
{
|
|
||||||
return platform_driver_register(&atmel_nand_driver);
|
|
||||||
}
|
|
||||||
|
|
||||||
device_initcall(atmel_nand_init);
|
|
||||||
|
|
||||||
MODULE_LICENSE("GPL");
|
MODULE_LICENSE("GPL");
|
||||||
MODULE_AUTHOR("Rick Bronson");
|
MODULE_AUTHOR("Rick Bronson");
|
||||||
|
|
|
@ -1277,17 +1277,7 @@ static struct driver_d imx_nand_driver = {
|
||||||
.name = "imx_nand",
|
.name = "imx_nand",
|
||||||
.probe = imxnd_probe,
|
.probe = imxnd_probe,
|
||||||
};
|
};
|
||||||
|
device_platform_driver(imx_nand_driver);
|
||||||
/*
|
|
||||||
* Main initialization routine
|
|
||||||
* @return 0 if successful; non-zero otherwise
|
|
||||||
*/
|
|
||||||
static int __init imx_nand_init(void)
|
|
||||||
{
|
|
||||||
return platform_driver_register(&imx_nand_driver);
|
|
||||||
}
|
|
||||||
|
|
||||||
device_initcall(imx_nand_init);
|
|
||||||
|
|
||||||
MODULE_AUTHOR("Freescale Semiconductor, Inc.");
|
MODULE_AUTHOR("Freescale Semiconductor, Inc.");
|
||||||
MODULE_DESCRIPTION("MXC NAND MTD driver");
|
MODULE_DESCRIPTION("MXC NAND MTD driver");
|
||||||
|
|
|
@ -1265,13 +1265,7 @@ static struct driver_d mxs_nand_driver = {
|
||||||
.name = "mxs_nand",
|
.name = "mxs_nand",
|
||||||
.probe = mxs_nand_probe,
|
.probe = mxs_nand_probe,
|
||||||
};
|
};
|
||||||
|
device_platform_driver(mxs_nand_driver);
|
||||||
static int __init mxs_nand_init(void)
|
|
||||||
{
|
|
||||||
return platform_driver_register(&mxs_nand_driver);
|
|
||||||
}
|
|
||||||
|
|
||||||
device_initcall(mxs_nand_init);
|
|
||||||
|
|
||||||
MODULE_AUTHOR("Denx Software Engeneering and Wolfram Sang");
|
MODULE_AUTHOR("Denx Software Engeneering and Wolfram Sang");
|
||||||
MODULE_DESCRIPTION("MXS NAND MTD driver");
|
MODULE_DESCRIPTION("MXS NAND MTD driver");
|
||||||
|
|
|
@ -1081,10 +1081,4 @@ static struct driver_d gpmc_nand_driver = {
|
||||||
.name = "gpmc_nand",
|
.name = "gpmc_nand",
|
||||||
.probe = gpmc_nand_probe,
|
.probe = gpmc_nand_probe,
|
||||||
};
|
};
|
||||||
|
device_platform_driver(gpmc_nand_driver);
|
||||||
static int gpmc_nand_init(void)
|
|
||||||
{
|
|
||||||
return platform_driver_register(&gpmc_nand_driver);
|
|
||||||
}
|
|
||||||
|
|
||||||
device_initcall(gpmc_nand_init);
|
|
||||||
|
|
|
@ -494,6 +494,7 @@ static struct driver_d s3c24x0_nand_driver = {
|
||||||
.name = "s3c24x0_nand",
|
.name = "s3c24x0_nand",
|
||||||
.probe = s3c24x0_nand_probe,
|
.probe = s3c24x0_nand_probe,
|
||||||
};
|
};
|
||||||
|
device_platform_driver(s3c24x0_nand_driver);
|
||||||
|
|
||||||
#ifdef CONFIG_S3C_NAND_BOOT
|
#ifdef CONFIG_S3C_NAND_BOOT
|
||||||
|
|
||||||
|
@ -646,17 +647,6 @@ BAREBOX_CMD_END
|
||||||
|
|
||||||
#endif /* CONFIG_S3C_NAND_BOOT */
|
#endif /* CONFIG_S3C_NAND_BOOT */
|
||||||
|
|
||||||
/*
|
|
||||||
* Main initialization routine
|
|
||||||
* @return 0 if successful; non-zero otherwise
|
|
||||||
*/
|
|
||||||
static int __init s3c24x0_nand_init(void)
|
|
||||||
{
|
|
||||||
return platform_driver_register(&s3c24x0_nand_driver);
|
|
||||||
}
|
|
||||||
|
|
||||||
device_initcall(s3c24x0_nand_init);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @file
|
* @file
|
||||||
* @brief Support for various kinds of NAND devices
|
* @brief Support for various kinds of NAND devices
|
||||||
|
|
|
@ -234,14 +234,7 @@ static struct driver_d nomadik_nand_driver = {
|
||||||
.probe = nomadik_nand_probe,
|
.probe = nomadik_nand_probe,
|
||||||
.name = "nomadik_nand",
|
.name = "nomadik_nand",
|
||||||
};
|
};
|
||||||
|
device_platform_driver(nomadik_nand_driver);
|
||||||
static int __init nand_nomadik_init(void)
|
|
||||||
{
|
|
||||||
pr_info("Nomadik NAND driver\n");
|
|
||||||
return platform_driver_register(&nomadik_nand_driver);
|
|
||||||
}
|
|
||||||
|
|
||||||
device_initcall(nand_nomadik_init);
|
|
||||||
|
|
||||||
MODULE_LICENSE("GPL");
|
MODULE_LICENSE("GPL");
|
||||||
MODULE_AUTHOR("ST Microelectronics (sachin.verma@st.com)");
|
MODULE_AUTHOR("ST Microelectronics (sachin.verma@st.com)");
|
||||||
|
|
|
@ -557,12 +557,4 @@ static struct driver_d altera_tse_driver = {
|
||||||
.name = "altera_tse",
|
.name = "altera_tse",
|
||||||
.probe = tse_probe,
|
.probe = tse_probe,
|
||||||
};
|
};
|
||||||
|
device_platform_driver(altera_tse_driver);
|
||||||
static int tse_init(void)
|
|
||||||
{
|
|
||||||
platform_driver_register(&altera_tse_driver);
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
device_initcall(tse_init);
|
|
||||||
|
|
||||||
|
|
|
@ -366,10 +366,4 @@ static struct driver_d at91_ether_driver = {
|
||||||
.probe = at91_ether_probe,
|
.probe = at91_ether_probe,
|
||||||
.remove = at91_ether_remove,
|
.remove = at91_ether_remove,
|
||||||
};
|
};
|
||||||
|
device_platform_driver(at91_ether_driver);
|
||||||
static int at91_ether_driver_init(void)
|
|
||||||
{
|
|
||||||
platform_driver_register(&at91_ether_driver);
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
device_initcall(at91_ether_driver_init);
|
|
||||||
|
|
|
@ -1061,10 +1061,4 @@ static struct driver_d cpsw_driver = {
|
||||||
.name = "cpsw",
|
.name = "cpsw",
|
||||||
.probe = cpsw_probe,
|
.probe = cpsw_probe,
|
||||||
};
|
};
|
||||||
|
device_platform_driver(cpsw_driver);
|
||||||
static int cpsw_register(void)
|
|
||||||
{
|
|
||||||
return platform_driver_register(&cpsw_driver);
|
|
||||||
}
|
|
||||||
|
|
||||||
device_initcall(cpsw_register);
|
|
||||||
|
|
|
@ -468,11 +468,4 @@ static struct driver_d cs8900_driver = {
|
||||||
.probe = cs8900_probe,
|
.probe = cs8900_probe,
|
||||||
.info = cs8900_info,
|
.info = cs8900_info,
|
||||||
};
|
};
|
||||||
|
device_platform_driver(cs8900_driver);
|
||||||
static int cs8900_init(void)
|
|
||||||
{
|
|
||||||
platform_driver_register(&cs8900_driver);
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
device_initcall(cs8900_init);
|
|
||||||
|
|
|
@ -608,11 +608,4 @@ static struct driver_d davinci_emac_driver = {
|
||||||
.probe = davinci_emac_probe,
|
.probe = davinci_emac_probe,
|
||||||
.remove = davinci_emac_remove,
|
.remove = davinci_emac_remove,
|
||||||
};
|
};
|
||||||
|
device_platform_driver(davinci_emac_driver);
|
||||||
static int davinci_emac_register(void)
|
|
||||||
{
|
|
||||||
platform_driver_register(&davinci_emac_driver);
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
device_initcall(davinci_emac_register);
|
|
||||||
|
|
|
@ -455,10 +455,4 @@ static struct driver_d dwc_ether_driver = {
|
||||||
.probe = dwc_ether_probe,
|
.probe = dwc_ether_probe,
|
||||||
.remove = dwc_ether_remove,
|
.remove = dwc_ether_remove,
|
||||||
};
|
};
|
||||||
|
device_platform_driver(dwc_ether_driver);
|
||||||
static int dwc_ether_driver_init(void)
|
|
||||||
{
|
|
||||||
platform_driver_register(&dwc_ether_driver);
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
device_initcall(dwc_ether_driver_init);
|
|
||||||
|
|
|
@ -780,11 +780,4 @@ static struct driver_d dm9k_driver = {
|
||||||
.name = "dm9000",
|
.name = "dm9000",
|
||||||
.probe = dm9k_probe,
|
.probe = dm9k_probe,
|
||||||
};
|
};
|
||||||
|
device_platform_driver(dm9k_driver);
|
||||||
static int dm9k_init(void)
|
|
||||||
{
|
|
||||||
platform_driver_register(&dm9k_driver);
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
device_initcall(dm9k_init);
|
|
||||||
|
|
|
@ -663,11 +663,4 @@ static struct driver_d ep93xx_eth_driver = {
|
||||||
.name = "ep93xx_eth",
|
.name = "ep93xx_eth",
|
||||||
.probe = ep93xx_eth_probe,
|
.probe = ep93xx_eth_probe,
|
||||||
};
|
};
|
||||||
|
device_platform_driver(ep93xx_eth_driver);
|
||||||
static int ep93xx_eth_init(void)
|
|
||||||
{
|
|
||||||
platform_driver_register(&ep93xx_eth_driver);
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
device_initcall(ep93xx_eth_init);
|
|
||||||
|
|
|
@ -768,14 +768,7 @@ static struct driver_d fec_driver = {
|
||||||
.of_compatible = DRV_OF_COMPAT(imx_fec_dt_ids),
|
.of_compatible = DRV_OF_COMPAT(imx_fec_dt_ids),
|
||||||
.id_table = imx_fec_ids,
|
.id_table = imx_fec_ids,
|
||||||
};
|
};
|
||||||
|
device_platform_driver(fec_driver);
|
||||||
static int fec_register(void)
|
|
||||||
{
|
|
||||||
platform_driver_register(&fec_driver);
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
device_initcall(fec_register);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @file
|
* @file
|
||||||
|
|
|
@ -717,12 +717,4 @@ static struct driver_d mpc5xxx_driver = {
|
||||||
.probe = mpc5xxx_fec_probe,
|
.probe = mpc5xxx_fec_probe,
|
||||||
.remove = mpc5xxx_fec_remove,
|
.remove = mpc5xxx_fec_remove,
|
||||||
};
|
};
|
||||||
|
device_platform_driver(mpc5xxx_driver);
|
||||||
static int mpc5xxx_fec_register(void)
|
|
||||||
{
|
|
||||||
platform_driver_register(&mpc5xxx_driver);
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
device_initcall(mpc5xxx_fec_register);
|
|
||||||
|
|
||||||
|
|
|
@ -528,11 +528,4 @@ static struct driver_d gfar_eth_driver = {
|
||||||
.name = "gfar",
|
.name = "gfar",
|
||||||
.probe = gfar_probe,
|
.probe = gfar_probe,
|
||||||
};
|
};
|
||||||
|
device_platform_driver(gfar_eth_driver);
|
||||||
static int gfar_eth_init(void)
|
|
||||||
{
|
|
||||||
platform_driver_register(&gfar_eth_driver);
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
device_initcall(gfar_eth_init);
|
|
||||||
|
|
|
@ -873,11 +873,4 @@ static struct driver_d ks8851_driver = {
|
||||||
.name = "ks8851_mll",
|
.name = "ks8851_mll",
|
||||||
.probe = ks8851_probe,
|
.probe = ks8851_probe,
|
||||||
};
|
};
|
||||||
|
device_platform_driver(ks8851_driver);
|
||||||
static int ks8851_init(void)
|
|
||||||
{
|
|
||||||
platform_driver_register(&ks8851_driver);
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
device_initcall(ks8851_init);
|
|
||||||
|
|
|
@ -666,11 +666,4 @@ static struct driver_d macb_driver = {
|
||||||
.name = "macb",
|
.name = "macb",
|
||||||
.probe = macb_probe,
|
.probe = macb_probe,
|
||||||
};
|
};
|
||||||
|
device_platform_driver(macb_driver);
|
||||||
static int macb_driver_init(void)
|
|
||||||
{
|
|
||||||
debug("%s\n", __func__);
|
|
||||||
platform_driver_register(&macb_driver);
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
device_initcall(macb_driver_init);
|
|
||||||
|
|
|
@ -276,12 +276,4 @@ static struct driver_d netx_eth_driver = {
|
||||||
.name = "netx-eth",
|
.name = "netx-eth",
|
||||||
.probe = netx_eth_probe,
|
.probe = netx_eth_probe,
|
||||||
};
|
};
|
||||||
|
device_platform_driver(netx_eth_driver);
|
||||||
static int netx_eth_init(void)
|
|
||||||
{
|
|
||||||
platform_driver_register(&netx_eth_driver);
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
device_initcall(netx_eth_init);
|
|
||||||
|
|
||||||
|
|
|
@ -1319,11 +1319,4 @@ static struct driver_d smc91c111_driver = {
|
||||||
.name = "smc91c111",
|
.name = "smc91c111",
|
||||||
.probe = smc91c111_probe,
|
.probe = smc91c111_probe,
|
||||||
};
|
};
|
||||||
|
device_platform_driver(smc91c111_driver);
|
||||||
static int smc91c111_init(void)
|
|
||||||
{
|
|
||||||
platform_driver_register(&smc91c111_driver);
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
device_initcall(smc91c111_init);
|
|
||||||
|
|
|
@ -638,12 +638,4 @@ static struct driver_d smc911x_driver = {
|
||||||
.name = "smc911x",
|
.name = "smc911x",
|
||||||
.probe = smc911x_probe,
|
.probe = smc911x_probe,
|
||||||
};
|
};
|
||||||
|
device_platform_driver(smc911x_driver);
|
||||||
static int smc911x_init(void)
|
|
||||||
{
|
|
||||||
platform_driver_register(&smc911x_driver);
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
device_initcall(smc911x_init);
|
|
||||||
|
|
||||||
|
|
|
@ -109,11 +109,4 @@ static struct driver_d tap_driver = {
|
||||||
.name = "tap",
|
.name = "tap",
|
||||||
.probe = tap_probe,
|
.probe = tap_probe,
|
||||||
};
|
};
|
||||||
|
device_platform_driver(tap_driver);
|
||||||
static int tap_init(void)
|
|
||||||
{
|
|
||||||
platform_driver_register(&tap_driver);
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
device_initcall(tap_init);
|
|
||||||
|
|
|
@ -1035,10 +1035,4 @@ static struct driver_d cfi_driver = {
|
||||||
.info = cfi_info,
|
.info = cfi_info,
|
||||||
.of_compatible = DRV_OF_COMPAT(cfi_dt_ids),
|
.of_compatible = DRV_OF_COMPAT(cfi_dt_ids),
|
||||||
};
|
};
|
||||||
|
device_platform_driver(cfi_driver);
|
||||||
static int cfi_init(void)
|
|
||||||
{
|
|
||||||
return platform_driver_register(&cfi_driver);
|
|
||||||
}
|
|
||||||
|
|
||||||
device_initcall(cfi_init);
|
|
||||||
|
|
|
@ -239,10 +239,4 @@ static struct driver_d altera_spi_driver = {
|
||||||
.name = "altera_spi",
|
.name = "altera_spi",
|
||||||
.probe = altera_spi_probe,
|
.probe = altera_spi_probe,
|
||||||
};
|
};
|
||||||
|
device_platform_driver(altera_spi_driver);
|
||||||
static int altera_spi_driver_init(void)
|
|
||||||
{
|
|
||||||
return platform_driver_register(&altera_spi_driver);
|
|
||||||
}
|
|
||||||
|
|
||||||
device_initcall(altera_spi_driver_init);
|
|
||||||
|
|
|
@ -437,11 +437,4 @@ static struct driver_d atmel_spi_driver = {
|
||||||
.name = "atmel_spi",
|
.name = "atmel_spi",
|
||||||
.probe = atmel_spi_probe,
|
.probe = atmel_spi_probe,
|
||||||
};
|
};
|
||||||
|
device_platform_driver(atmel_spi_driver);
|
||||||
static int atmel_spi_init(void)
|
|
||||||
{
|
|
||||||
platform_driver_register(&atmel_spi_driver);
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
device_initcall(atmel_spi_init);
|
|
||||||
|
|
|
@ -597,12 +597,4 @@ static struct driver_d imx_spi_driver = {
|
||||||
.probe = imx_spi_probe,
|
.probe = imx_spi_probe,
|
||||||
.of_compatible = DRV_OF_COMPAT(imx_spi_dt_ids),
|
.of_compatible = DRV_OF_COMPAT(imx_spi_dt_ids),
|
||||||
};
|
};
|
||||||
|
device_platform_driver(imx_spi_driver);
|
||||||
static int imx_spi_init(void)
|
|
||||||
{
|
|
||||||
platform_driver_register(&imx_spi_driver);
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
device_initcall(imx_spi_init);
|
|
||||||
|
|
||||||
|
|
|
@ -390,10 +390,4 @@ static struct driver_d omap3_spi_driver = {
|
||||||
.name = "omap3_spi",
|
.name = "omap3_spi",
|
||||||
.probe = omap3_spi_probe,
|
.probe = omap3_spi_probe,
|
||||||
};
|
};
|
||||||
|
device_platform_driver(omap3_spi_driver);
|
||||||
static int omap3_spi_init(void)
|
|
||||||
{
|
|
||||||
return platform_driver_register(&omap3_spi_driver);
|
|
||||||
}
|
|
||||||
|
|
||||||
device_initcall(omap3_spi_init);
|
|
||||||
|
|
|
@ -1537,10 +1537,4 @@ static struct driver_d at91_udc_driver = {
|
||||||
.name = driver_name,
|
.name = driver_name,
|
||||||
.probe = at91udc_probe,
|
.probe = at91udc_probe,
|
||||||
};
|
};
|
||||||
|
device_platform_driver(at91_udc_driver);
|
||||||
static int at91_udc_init(void)
|
|
||||||
{
|
|
||||||
platform_driver_register(&at91_udc_driver);
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
device_initcall(at91_udc_init);
|
|
||||||
|
|
|
@ -2330,11 +2330,4 @@ static struct driver_d fsl_udc_driver = {
|
||||||
.name = "fsl-udc",
|
.name = "fsl-udc",
|
||||||
.probe = fsl_udc_probe,
|
.probe = fsl_udc_probe,
|
||||||
};
|
};
|
||||||
|
device_platform_driver(fsl_udc_driver);
|
||||||
static int fsl_udc_init(void)
|
|
||||||
{
|
|
||||||
platform_driver_register(&fsl_udc_driver);
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
device_initcall(fsl_udc_init);
|
|
||||||
|
|
|
@ -1512,11 +1512,4 @@ static struct driver_d udc_driver = {
|
||||||
.name = "pxa27x-udc",
|
.name = "pxa27x-udc",
|
||||||
.probe = pxa_udc_probe,
|
.probe = pxa_udc_probe,
|
||||||
};
|
};
|
||||||
|
device_platform_driver(udc_driver);
|
||||||
static int __init pxa27x_udc_init(void)
|
|
||||||
{
|
|
||||||
platform_driver_register(&udc_driver);
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
device_initcall(pxa27x_udc_init);
|
|
||||||
|
|
|
@ -87,10 +87,4 @@ static struct driver_d atmel_ehci_driver = {
|
||||||
.probe = atmel_ehci_probe,
|
.probe = atmel_ehci_probe,
|
||||||
.remove = atmel_ehci_remove,
|
.remove = atmel_ehci_remove,
|
||||||
};
|
};
|
||||||
|
device_platform_driver(atmel_ehci_driver);
|
||||||
static int atmel_ehci_init(void)
|
|
||||||
{
|
|
||||||
platform_driver_register(&atmel_ehci_driver);
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
device_initcall(atmel_ehci_init);
|
|
||||||
|
|
|
@ -909,12 +909,4 @@ static struct driver_d ehci_driver = {
|
||||||
.probe = ehci_probe,
|
.probe = ehci_probe,
|
||||||
.remove = ehci_remove,
|
.remove = ehci_remove,
|
||||||
};
|
};
|
||||||
|
device_platform_driver(ehci_driver);
|
||||||
static int ehcil_init(void)
|
|
||||||
{
|
|
||||||
platform_driver_register(&ehci_driver);
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
device_initcall(ehcil_init);
|
|
||||||
|
|
||||||
|
|
|
@ -85,10 +85,4 @@ static struct driver_d at91_ohci_driver = {
|
||||||
.probe = at91_ohci_probe,
|
.probe = at91_ohci_probe,
|
||||||
.remove = at91_ohci_remove,
|
.remove = at91_ohci_remove,
|
||||||
};
|
};
|
||||||
|
device_platform_driver(at91_ohci_driver);
|
||||||
static int at91_ohci_init(void)
|
|
||||||
{
|
|
||||||
platform_driver_register(&at91_ohci_driver);
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
device_initcall(at91_ohci_init);
|
|
||||||
|
|
|
@ -1819,12 +1819,4 @@ static struct driver_d ohci_driver = {
|
||||||
.name = "ohci",
|
.name = "ohci",
|
||||||
.probe = ohci_probe,
|
.probe = ohci_probe,
|
||||||
};
|
};
|
||||||
|
device_platform_driver(ohci_driver);
|
||||||
static int ohcil_init(void)
|
|
||||||
{
|
|
||||||
platform_driver_register(&ohci_driver);
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
device_initcall(ohcil_init);
|
|
||||||
|
|
||||||
|
|
|
@ -83,9 +83,4 @@ static struct driver_d imx_chipidea_driver = {
|
||||||
.name = "imx-usb",
|
.name = "imx-usb",
|
||||||
.probe = imx_chipidea_probe,
|
.probe = imx_chipidea_probe,
|
||||||
};
|
};
|
||||||
|
device_platform_driver(imx_chipidea_driver);
|
||||||
static int imx_chipidea_init(void)
|
|
||||||
{
|
|
||||||
return platform_driver_register(&imx_chipidea_driver);
|
|
||||||
}
|
|
||||||
device_initcall(imx_chipidea_init);
|
|
||||||
|
|
|
@ -289,9 +289,4 @@ static struct driver_d atmel_hlcdc_driver = {
|
||||||
.name = "atmel_hlcdfb",
|
.name = "atmel_hlcdfb",
|
||||||
.probe = atmel_hlcdc_probe,
|
.probe = atmel_hlcdc_probe,
|
||||||
};
|
};
|
||||||
|
device_platform_driver(atmel_hlcdc_driver);
|
||||||
static int atmel_hlcdc_init(void)
|
|
||||||
{
|
|
||||||
return platform_driver_register(&atmel_hlcdc_driver);
|
|
||||||
}
|
|
||||||
device_initcall(atmel_hlcdc_init);
|
|
||||||
|
|
|
@ -255,9 +255,4 @@ static struct driver_d atmel_lcdc_driver = {
|
||||||
.name = "atmel_lcdfb",
|
.name = "atmel_lcdfb",
|
||||||
.probe = atmel_lcdc_probe,
|
.probe = atmel_lcdc_probe,
|
||||||
};
|
};
|
||||||
|
device_platform_driver(atmel_lcdc_driver);
|
||||||
static int atmel_lcdc_init(void)
|
|
||||||
{
|
|
||||||
return platform_driver_register(&atmel_lcdc_driver);
|
|
||||||
}
|
|
||||||
device_initcall(atmel_lcdc_init);
|
|
||||||
|
|
|
@ -1039,13 +1039,7 @@ static struct driver_d imx3fb_driver = {
|
||||||
.probe = imxfb_probe,
|
.probe = imxfb_probe,
|
||||||
.remove = imxfb_remove,
|
.remove = imxfb_remove,
|
||||||
};
|
};
|
||||||
|
device_platform_driver(imx3fb_driver);
|
||||||
static int imx3fb_init(void)
|
|
||||||
{
|
|
||||||
return platform_driver_register(&imx3fb_driver);
|
|
||||||
}
|
|
||||||
|
|
||||||
device_initcall(imx3fb_init);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @file
|
* @file
|
||||||
|
|
|
@ -597,11 +597,4 @@ static struct driver_d imxfb_driver = {
|
||||||
.probe = imxfb_probe,
|
.probe = imxfb_probe,
|
||||||
.remove = imxfb_remove,
|
.remove = imxfb_remove,
|
||||||
};
|
};
|
||||||
|
device_platform_driver(imxfb_driver);
|
||||||
static int imxfb_init(void)
|
|
||||||
{
|
|
||||||
return platform_driver_register(&imxfb_driver);
|
|
||||||
}
|
|
||||||
|
|
||||||
device_initcall(imxfb_init);
|
|
||||||
|
|
||||||
|
|
|
@ -545,10 +545,4 @@ static struct driver_d pxafb_driver = {
|
||||||
.probe = pxafb_probe,
|
.probe = pxafb_probe,
|
||||||
.remove = pxafb_remove,
|
.remove = pxafb_remove,
|
||||||
};
|
};
|
||||||
|
device_platform_driver(pxafb_driver);
|
||||||
static int pxafb_init(void)
|
|
||||||
{
|
|
||||||
return platform_driver_register(&pxafb_driver);
|
|
||||||
}
|
|
||||||
|
|
||||||
device_initcall(pxafb_init);
|
|
||||||
|
|
|
@ -406,13 +406,7 @@ static struct driver_d s3cfb_driver = {
|
||||||
.info = s3cfb_info,
|
.info = s3cfb_info,
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
device_platform_driver(s3cfb_driver);
|
||||||
static int s3cfb_init(void)
|
|
||||||
{
|
|
||||||
return platform_driver_register(&s3cfb_driver);
|
|
||||||
}
|
|
||||||
|
|
||||||
device_initcall(s3cfb_init);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The S3C244x LCD controller supports passive (CSTN/STN) and active (TFT) LC displays
|
* The S3C244x LCD controller supports passive (CSTN/STN) and active (TFT) LC displays
|
||||||
|
|
|
@ -93,9 +93,4 @@ static struct driver_d sdlfb_driver = {
|
||||||
.probe = sdlfb_probe,
|
.probe = sdlfb_probe,
|
||||||
.remove = sdlfb_remove,
|
.remove = sdlfb_remove,
|
||||||
};
|
};
|
||||||
|
device_platform_driver(sdlfb_driver);
|
||||||
static int sdlfb_init(void)
|
|
||||||
{
|
|
||||||
return platform_driver_register(&sdlfb_driver);
|
|
||||||
}
|
|
||||||
device_initcall(sdlfb_init);
|
|
||||||
|
|
|
@ -516,13 +516,7 @@ static struct driver_d stmfb_driver = {
|
||||||
.probe = stmfb_probe,
|
.probe = stmfb_probe,
|
||||||
.info = stmfb_info,
|
.info = stmfb_info,
|
||||||
};
|
};
|
||||||
|
device_platform_driver(stmfb_driver);
|
||||||
static int stmfb_init(void)
|
|
||||||
{
|
|
||||||
return platform_driver_register(&stmfb_driver);
|
|
||||||
}
|
|
||||||
|
|
||||||
device_initcall(stmfb_init);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @file
|
* @file
|
||||||
|
|
|
@ -108,9 +108,4 @@ static struct driver_d w1_gpio_driver = {
|
||||||
.name = "w1-gpio",
|
.name = "w1-gpio",
|
||||||
.probe = w1_gpio_probe,
|
.probe = w1_gpio_probe,
|
||||||
};
|
};
|
||||||
|
device_platform_driver(w1_gpio_driver);
|
||||||
static int __init w1_gpio_init(void)
|
|
||||||
{
|
|
||||||
return platform_driver_register(&w1_gpio_driver);
|
|
||||||
}
|
|
||||||
device_initcall(w1_gpio_init);
|
|
||||||
|
|
|
@ -150,11 +150,4 @@ static struct driver_d imx28_wd_driver = {
|
||||||
.probe = imx28_wd_probe,
|
.probe = imx28_wd_probe,
|
||||||
.remove = imx28_wd_remove,
|
.remove = imx28_wd_remove,
|
||||||
};
|
};
|
||||||
|
device_platform_driver(imx28_wd_driver);
|
||||||
static int imx28_wd_init(void)
|
|
||||||
{
|
|
||||||
platform_driver_register(&imx28_wd_driver);
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
device_initcall(imx28_wd_init);
|
|
||||||
|
|
|
@ -226,10 +226,4 @@ static struct driver_d imx_wd_driver = {
|
||||||
.of_compatible = DRV_OF_COMPAT(imx_wdt_dt_ids),
|
.of_compatible = DRV_OF_COMPAT(imx_wdt_dt_ids),
|
||||||
.id_table = imx_wdt_ids,
|
.id_table = imx_wdt_ids,
|
||||||
};
|
};
|
||||||
|
device_platform_driver(imx_wd_driver);
|
||||||
static int imx_wd_init(void)
|
|
||||||
{
|
|
||||||
return platform_driver_register(&imx_wd_driver);
|
|
||||||
}
|
|
||||||
|
|
||||||
device_initcall(imx_wd_init);
|
|
||||||
|
|
Loading…
Reference in New Issue