mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 22:21:40 +00:00
of: Remove duplicate fields from of_platform_driver
.name, .match_table and .owner are duplicated in both of_platform_driver and device_driver. This patch is a removes the extra copies from struct of_platform_driver and converts all users to the device_driver members. This patch is a pretty mechanical change. The usage model doesn't change and if any drivers have been missed, or if anything has been fixed up incorrectly, then it will fail with a compile time error, and the fixup will be trivial. This patch looks big and scary because it touches so many files, but it should be pretty safe. Signed-off-by: Grant Likely <grant.likely@secretlab.ca> Acked-by: Sean MacLennan <smaclennan@pikatech.com>
This commit is contained in:
parent
597b9d1e44
commit
4018294b53
@ -201,9 +201,6 @@ static int ibmebus_create_devices(const struct of_device_id *matches)
|
|||||||
|
|
||||||
int ibmebus_register_driver(struct of_platform_driver *drv)
|
int ibmebus_register_driver(struct of_platform_driver *drv)
|
||||||
{
|
{
|
||||||
if (!drv->driver.of_match_table)
|
|
||||||
drv->driver.of_match_table = drv->match_table;
|
|
||||||
|
|
||||||
/* If the driver uses devices that ibmebus doesn't know, add them */
|
/* If the driver uses devices that ibmebus doesn't know, add them */
|
||||||
ibmebus_create_devices(drv->driver.of_match_table);
|
ibmebus_create_devices(drv->driver.of_match_table);
|
||||||
|
|
||||||
|
@ -306,10 +306,11 @@ static struct of_device_id of_pci_phb_ids[] = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
static struct of_platform_driver of_pci_phb_driver = {
|
static struct of_platform_driver of_pci_phb_driver = {
|
||||||
.match_table = of_pci_phb_ids,
|
|
||||||
.probe = of_pci_phb_probe,
|
.probe = of_pci_phb_probe,
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = "of-pci",
|
.name = "of-pci",
|
||||||
|
.owner = THIS_MODULE,
|
||||||
|
.of_match_table = of_pci_phb_ids,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -193,8 +193,11 @@ static const struct of_device_id mpc52xx_wkup_gpiochip_match[] = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
static struct of_platform_driver mpc52xx_wkup_gpiochip_driver = {
|
static struct of_platform_driver mpc52xx_wkup_gpiochip_driver = {
|
||||||
|
.driver = {
|
||||||
.name = "gpio_wkup",
|
.name = "gpio_wkup",
|
||||||
.match_table = mpc52xx_wkup_gpiochip_match,
|
.owner = THIS_MODULE,
|
||||||
|
.of_match_table = mpc52xx_wkup_gpiochip_match,
|
||||||
|
},
|
||||||
.probe = mpc52xx_wkup_gpiochip_probe,
|
.probe = mpc52xx_wkup_gpiochip_probe,
|
||||||
.remove = mpc52xx_gpiochip_remove,
|
.remove = mpc52xx_gpiochip_remove,
|
||||||
};
|
};
|
||||||
@ -349,8 +352,11 @@ static const struct of_device_id mpc52xx_simple_gpiochip_match[] = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
static struct of_platform_driver mpc52xx_simple_gpiochip_driver = {
|
static struct of_platform_driver mpc52xx_simple_gpiochip_driver = {
|
||||||
|
.driver = {
|
||||||
.name = "gpio",
|
.name = "gpio",
|
||||||
.match_table = mpc52xx_simple_gpiochip_match,
|
.owner = THIS_MODULE,
|
||||||
|
.of_match_table = mpc52xx_simple_gpiochip_match,
|
||||||
|
},
|
||||||
.probe = mpc52xx_simple_gpiochip_probe,
|
.probe = mpc52xx_simple_gpiochip_probe,
|
||||||
.remove = mpc52xx_gpiochip_remove,
|
.remove = mpc52xx_gpiochip_remove,
|
||||||
};
|
};
|
||||||
|
@ -784,8 +784,11 @@ static const struct of_device_id mpc52xx_gpt_match[] = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
static struct of_platform_driver mpc52xx_gpt_driver = {
|
static struct of_platform_driver mpc52xx_gpt_driver = {
|
||||||
|
.driver = {
|
||||||
.name = "mpc52xx-gpt",
|
.name = "mpc52xx-gpt",
|
||||||
.match_table = mpc52xx_gpt_match,
|
.owner = THIS_MODULE,
|
||||||
|
.of_match_table = mpc52xx_gpt_match,
|
||||||
|
},
|
||||||
.probe = mpc52xx_gpt_probe,
|
.probe = mpc52xx_gpt_probe,
|
||||||
.remove = mpc52xx_gpt_remove,
|
.remove = mpc52xx_gpt_remove,
|
||||||
};
|
};
|
||||||
|
@ -537,9 +537,11 @@ static struct of_device_id mpc52xx_lpbfifo_match[] __devinitconst = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
static struct of_platform_driver mpc52xx_lpbfifo_driver = {
|
static struct of_platform_driver mpc52xx_lpbfifo_driver = {
|
||||||
.owner = THIS_MODULE,
|
.driver = {
|
||||||
.name = "mpc52xx-lpbfifo",
|
.name = "mpc52xx-lpbfifo",
|
||||||
.match_table = mpc52xx_lpbfifo_match,
|
.owner = THIS_MODULE,
|
||||||
|
.of_match_table = mpc52xx_lpbfifo_match,
|
||||||
|
},
|
||||||
.probe = mpc52xx_lpbfifo_probe,
|
.probe = mpc52xx_lpbfifo_probe,
|
||||||
.remove = __devexit_p(mpc52xx_lpbfifo_remove),
|
.remove = __devexit_p(mpc52xx_lpbfifo_remove),
|
||||||
};
|
};
|
||||||
|
@ -170,8 +170,9 @@ static const struct of_device_id ep8248e_mdio_match[] = {
|
|||||||
static struct of_platform_driver ep8248e_mdio_driver = {
|
static struct of_platform_driver ep8248e_mdio_driver = {
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = "ep8248e-mdio-bitbang",
|
.name = "ep8248e-mdio-bitbang",
|
||||||
|
.owner = THIS_MODULE,
|
||||||
|
.of_match_table = ep8248e_mdio_match,
|
||||||
},
|
},
|
||||||
.match_table = ep8248e_mdio_match,
|
|
||||||
.probe = ep8248e_mdio_probe,
|
.probe = ep8248e_mdio_probe,
|
||||||
.remove = ep8248e_mdio_remove,
|
.remove = ep8248e_mdio_remove,
|
||||||
};
|
};
|
||||||
|
@ -423,8 +423,11 @@ static struct of_device_id pmc_match[] = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
static struct of_platform_driver pmc_driver = {
|
static struct of_platform_driver pmc_driver = {
|
||||||
|
.driver = {
|
||||||
.name = "mpc83xx-pmc",
|
.name = "mpc83xx-pmc",
|
||||||
.match_table = pmc_match,
|
.owner = THIS_MODULE,
|
||||||
|
.of_match_table = pmc_match,
|
||||||
|
},
|
||||||
.probe = pmc_probe,
|
.probe = pmc_probe,
|
||||||
.remove = pmc_remove
|
.remove = pmc_remove
|
||||||
};
|
};
|
||||||
|
@ -447,11 +447,12 @@ static const struct of_device_id axon_msi_device_id[] = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
static struct of_platform_driver axon_msi_driver = {
|
static struct of_platform_driver axon_msi_driver = {
|
||||||
.match_table = axon_msi_device_id,
|
|
||||||
.probe = axon_msi_probe,
|
.probe = axon_msi_probe,
|
||||||
.shutdown = axon_msi_shutdown,
|
.shutdown = axon_msi_shutdown,
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = "axon-msi"
|
.name = "axon-msi",
|
||||||
|
.owner = THIS_MODULE,
|
||||||
|
.of_match_table = axon_msi_device_id,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -301,11 +301,12 @@ MODULE_DEVICE_TABLE(of, gpio_mdio_match);
|
|||||||
|
|
||||||
static struct of_platform_driver gpio_mdio_driver =
|
static struct of_platform_driver gpio_mdio_driver =
|
||||||
{
|
{
|
||||||
.match_table = gpio_mdio_match,
|
|
||||||
.probe = gpio_mdio_probe,
|
.probe = gpio_mdio_probe,
|
||||||
.remove = gpio_mdio_remove,
|
.remove = gpio_mdio_remove,
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = "gpio-mdio-bitbang",
|
.name = "gpio-mdio-bitbang",
|
||||||
|
.owner = THIS_MODULE,
|
||||||
|
.of_match_table = gpio_mdio_match,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -327,12 +327,12 @@ static struct of_device_id axon_ram_device_id[] = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
static struct of_platform_driver axon_ram_driver = {
|
static struct of_platform_driver axon_ram_driver = {
|
||||||
.match_table = axon_ram_device_id,
|
|
||||||
.probe = axon_ram_probe,
|
.probe = axon_ram_probe,
|
||||||
.remove = axon_ram_remove,
|
.remove = axon_ram_remove,
|
||||||
.driver = {
|
.driver = {
|
||||||
.owner = THIS_MODULE,
|
|
||||||
.name = AXON_RAM_MODULE_NAME,
|
.name = AXON_RAM_MODULE_NAME,
|
||||||
|
.owner = THIS_MODULE,
|
||||||
|
.of_match_table = axon_ram_device_id,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -494,14 +494,12 @@ MODULE_DEVICE_TABLE(of, mpc52xx_bcom_of_match);
|
|||||||
|
|
||||||
|
|
||||||
static struct of_platform_driver mpc52xx_bcom_of_platform_driver = {
|
static struct of_platform_driver mpc52xx_bcom_of_platform_driver = {
|
||||||
.owner = THIS_MODULE,
|
|
||||||
.name = DRIVER_NAME,
|
|
||||||
.match_table = mpc52xx_bcom_of_match,
|
|
||||||
.probe = mpc52xx_bcom_probe,
|
.probe = mpc52xx_bcom_probe,
|
||||||
.remove = mpc52xx_bcom_remove,
|
.remove = mpc52xx_bcom_remove,
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = DRIVER_NAME,
|
.name = DRIVER_NAME,
|
||||||
.owner = THIS_MODULE,
|
.owner = THIS_MODULE,
|
||||||
|
.of_match_table = mpc52xx_bcom_of_match,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -345,8 +345,11 @@ static const struct of_device_id fsl_of_msi_ids[] = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
static struct of_platform_driver fsl_of_msi_driver = {
|
static struct of_platform_driver fsl_of_msi_driver = {
|
||||||
|
.driver = {
|
||||||
.name = "fsl-msi",
|
.name = "fsl-msi",
|
||||||
.match_table = fsl_of_msi_ids,
|
.owner = THIS_MODULE,
|
||||||
|
.of_match_table = fsl_of_msi_ids,
|
||||||
|
},
|
||||||
.probe = fsl_of_msi_probe,
|
.probe = fsl_of_msi_probe,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -76,8 +76,11 @@ static const struct of_device_id pmc_ids[] = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
static struct of_platform_driver pmc_driver = {
|
static struct of_platform_driver pmc_driver = {
|
||||||
.driver.name = "fsl-pmc",
|
.driver = {
|
||||||
.match_table = pmc_ids,
|
.name = "fsl-pmc",
|
||||||
|
.owner = THIS_MODULE,
|
||||||
|
.of_match_table = pmc_ids,
|
||||||
|
},
|
||||||
.probe = pmc_probe,
|
.probe = pmc_probe,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -1215,8 +1215,11 @@ static const struct of_device_id fsl_of_rio_rpn_ids[] = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
static struct of_platform_driver fsl_of_rio_rpn_driver = {
|
static struct of_platform_driver fsl_of_rio_rpn_driver = {
|
||||||
|
.driver = {
|
||||||
.name = "fsl-of-rio",
|
.name = "fsl-of-rio",
|
||||||
.match_table = fsl_of_rio_rpn_ids,
|
.owner = THIS_MODULE,
|
||||||
|
.of_match_table = fsl_of_rio_rpn_ids,
|
||||||
|
},
|
||||||
.probe = fsl_of_rio_rpn_probe,
|
.probe = fsl_of_rio_rpn_probe,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -206,11 +206,12 @@ static int pmi_of_remove(struct of_device *dev)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static struct of_platform_driver pmi_of_platform_driver = {
|
static struct of_platform_driver pmi_of_platform_driver = {
|
||||||
.match_table = pmi_match,
|
|
||||||
.probe = pmi_of_probe,
|
.probe = pmi_of_probe,
|
||||||
.remove = pmi_of_remove,
|
.remove = pmi_of_remove,
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = "pmi",
|
.name = "pmi",
|
||||||
|
.owner = THIS_MODULE,
|
||||||
|
.of_match_table = pmi_match,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -669,8 +669,11 @@ static const struct of_device_id qe_ids[] = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
static struct of_platform_driver qe_driver = {
|
static struct of_platform_driver qe_driver = {
|
||||||
.driver.name = "fsl-qe",
|
.driver = {
|
||||||
.match_table = qe_ids,
|
.name = "fsl-qe",
|
||||||
|
.owner = THIS_MODULE,
|
||||||
|
.of_match_table = qe_ids,
|
||||||
|
},
|
||||||
.probe = qe_probe,
|
.probe = qe_probe,
|
||||||
.resume = qe_resume,
|
.resume = qe_resume,
|
||||||
};
|
};
|
||||||
|
@ -232,8 +232,11 @@ static const struct of_device_id ecpp_match[] = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
static struct of_platform_driver ecpp_driver = {
|
static struct of_platform_driver ecpp_driver = {
|
||||||
|
.driver = {
|
||||||
.name = "ecpp",
|
.name = "ecpp",
|
||||||
.match_table = ecpp_match,
|
.owner = THIS_MODULE,
|
||||||
|
.of_match_table = ecpp_match,
|
||||||
|
},
|
||||||
.probe = ecpp_probe,
|
.probe = ecpp_probe,
|
||||||
.remove = __devexit_p(ecpp_remove),
|
.remove = __devexit_p(ecpp_remove),
|
||||||
};
|
};
|
||||||
|
@ -174,8 +174,11 @@ static struct of_device_id __initdata apc_match[] = {
|
|||||||
MODULE_DEVICE_TABLE(of, apc_match);
|
MODULE_DEVICE_TABLE(of, apc_match);
|
||||||
|
|
||||||
static struct of_platform_driver apc_driver = {
|
static struct of_platform_driver apc_driver = {
|
||||||
|
.driver = {
|
||||||
.name = "apc",
|
.name = "apc",
|
||||||
.match_table = apc_match,
|
.owner = THIS_MODULE,
|
||||||
|
.of_match_table = apc_match,
|
||||||
|
},
|
||||||
.probe = apc_probe,
|
.probe = apc_probe,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -132,10 +132,11 @@ static int __devinit auxio_probe(struct of_device *dev, const struct of_device_i
|
|||||||
}
|
}
|
||||||
|
|
||||||
static struct of_platform_driver auxio_driver = {
|
static struct of_platform_driver auxio_driver = {
|
||||||
.match_table = auxio_match,
|
|
||||||
.probe = auxio_probe,
|
.probe = auxio_probe,
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = "auxio",
|
.name = "auxio",
|
||||||
|
.owner = THIS_MODULE,
|
||||||
|
.of_match_table = auxio_match,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -149,10 +149,11 @@ static struct of_device_id __initdata clock_board_match[] = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
static struct of_platform_driver clock_board_driver = {
|
static struct of_platform_driver clock_board_driver = {
|
||||||
.match_table = clock_board_match,
|
|
||||||
.probe = clock_board_probe,
|
.probe = clock_board_probe,
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = "clock_board",
|
.name = "clock_board",
|
||||||
|
.owner = THIS_MODULE,
|
||||||
|
.of_match_table = clock_board_match,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -254,10 +255,11 @@ static struct of_device_id __initdata fhc_match[] = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
static struct of_platform_driver fhc_driver = {
|
static struct of_platform_driver fhc_driver = {
|
||||||
.match_table = fhc_match,
|
|
||||||
.probe = fhc_probe,
|
.probe = fhc_probe,
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = "fhc",
|
.name = "fhc",
|
||||||
|
.owner = THIS_MODULE,
|
||||||
|
.of_match_table = fhc_match,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -811,8 +811,11 @@ static const struct of_device_id us3mc_match[] = {
|
|||||||
MODULE_DEVICE_TABLE(of, us3mc_match);
|
MODULE_DEVICE_TABLE(of, us3mc_match);
|
||||||
|
|
||||||
static struct of_platform_driver us3mc_driver = {
|
static struct of_platform_driver us3mc_driver = {
|
||||||
|
.driver = {
|
||||||
.name = "us3mc",
|
.name = "us3mc",
|
||||||
.match_table = us3mc_match,
|
.owner = THIS_MODULE,
|
||||||
|
.of_match_table = us3mc_match,
|
||||||
|
},
|
||||||
.probe = us3mc_probe,
|
.probe = us3mc_probe,
|
||||||
.remove = __devexit_p(us3mc_remove),
|
.remove = __devexit_p(us3mc_remove),
|
||||||
};
|
};
|
||||||
|
@ -508,8 +508,11 @@ static struct of_device_id __initdata fire_match[] = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
static struct of_platform_driver fire_driver = {
|
static struct of_platform_driver fire_driver = {
|
||||||
|
.driver = {
|
||||||
.name = DRIVER_NAME,
|
.name = DRIVER_NAME,
|
||||||
.match_table = fire_match,
|
.owner = THIS_MODULE,
|
||||||
|
.of_match_table = fire_match,
|
||||||
|
},
|
||||||
.probe = fire_probe,
|
.probe = fire_probe,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -602,8 +602,11 @@ static struct of_device_id __initdata psycho_match[] = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
static struct of_platform_driver psycho_driver = {
|
static struct of_platform_driver psycho_driver = {
|
||||||
|
.driver = {
|
||||||
.name = DRIVER_NAME,
|
.name = DRIVER_NAME,
|
||||||
.match_table = psycho_match,
|
.owner = THIS_MODULE,
|
||||||
|
.of_match_table = psycho_match,
|
||||||
|
},
|
||||||
.probe = psycho_probe,
|
.probe = psycho_probe,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -596,8 +596,11 @@ static struct of_device_id __initdata sabre_match[] = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
static struct of_platform_driver sabre_driver = {
|
static struct of_platform_driver sabre_driver = {
|
||||||
|
.driver = {
|
||||||
.name = DRIVER_NAME,
|
.name = DRIVER_NAME,
|
||||||
.match_table = sabre_match,
|
.owner = THIS_MODULE,
|
||||||
|
.of_match_table = sabre_match,
|
||||||
|
},
|
||||||
.probe = sabre_probe,
|
.probe = sabre_probe,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -1491,8 +1491,11 @@ static struct of_device_id __initdata schizo_match[] = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
static struct of_platform_driver schizo_driver = {
|
static struct of_platform_driver schizo_driver = {
|
||||||
|
.driver = {
|
||||||
.name = DRIVER_NAME,
|
.name = DRIVER_NAME,
|
||||||
.match_table = schizo_match,
|
.owner = THIS_MODULE,
|
||||||
|
.of_match_table = schizo_match,
|
||||||
|
},
|
||||||
.probe = schizo_probe,
|
.probe = schizo_probe,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -1009,8 +1009,11 @@ static struct of_device_id __initdata pci_sun4v_match[] = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
static struct of_platform_driver pci_sun4v_driver = {
|
static struct of_platform_driver pci_sun4v_driver = {
|
||||||
|
.driver = {
|
||||||
.name = DRIVER_NAME,
|
.name = DRIVER_NAME,
|
||||||
.match_table = pci_sun4v_match,
|
.owner = THIS_MODULE,
|
||||||
|
.of_match_table = pci_sun4v_match,
|
||||||
|
},
|
||||||
.probe = pci_sun4v_probe,
|
.probe = pci_sun4v_probe,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -79,8 +79,11 @@ static struct of_device_id __initdata pmc_match[] = {
|
|||||||
MODULE_DEVICE_TABLE(of, pmc_match);
|
MODULE_DEVICE_TABLE(of, pmc_match);
|
||||||
|
|
||||||
static struct of_platform_driver pmc_driver = {
|
static struct of_platform_driver pmc_driver = {
|
||||||
|
.driver = {
|
||||||
.name = "pmc",
|
.name = "pmc",
|
||||||
.match_table = pmc_match,
|
.owner = THIS_MODULE,
|
||||||
|
.of_match_table = pmc_match,
|
||||||
|
},
|
||||||
.probe = pmc_probe,
|
.probe = pmc_probe,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -60,10 +60,11 @@ static struct of_device_id __initdata power_match[] = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
static struct of_platform_driver power_driver = {
|
static struct of_platform_driver power_driver = {
|
||||||
.match_table = power_match,
|
|
||||||
.probe = power_probe,
|
.probe = power_probe,
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = "power",
|
.name = "power",
|
||||||
|
.owner = THIS_MODULE,
|
||||||
|
.of_match_table = power_match,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -185,10 +185,11 @@ static struct of_device_id __initdata clock_match[] = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
static struct of_platform_driver clock_driver = {
|
static struct of_platform_driver clock_driver = {
|
||||||
.match_table = clock_match,
|
|
||||||
.probe = clock_probe,
|
.probe = clock_probe,
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = "rtc",
|
.name = "rtc",
|
||||||
|
.owner = THIS_MODULE,
|
||||||
|
.of_match_table = clock_match,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -463,10 +463,11 @@ static struct of_device_id __initdata rtc_match[] = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
static struct of_platform_driver rtc_driver = {
|
static struct of_platform_driver rtc_driver = {
|
||||||
.match_table = rtc_match,
|
|
||||||
.probe = rtc_probe,
|
.probe = rtc_probe,
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = "rtc",
|
.name = "rtc",
|
||||||
|
.owner = THIS_MODULE,
|
||||||
|
.of_match_table = rtc_match,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -495,10 +496,11 @@ static struct of_device_id __initdata bq4802_match[] = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
static struct of_platform_driver bq4802_driver = {
|
static struct of_platform_driver bq4802_driver = {
|
||||||
.match_table = bq4802_match,
|
|
||||||
.probe = bq4802_probe,
|
.probe = bq4802_probe,
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = "bq4802",
|
.name = "bq4802",
|
||||||
|
.owner = THIS_MODULE,
|
||||||
|
.of_match_table = bq4802_match,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -558,10 +560,11 @@ static struct of_device_id __initdata mostek_match[] = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
static struct of_platform_driver mostek_driver = {
|
static struct of_platform_driver mostek_driver = {
|
||||||
.match_table = mostek_match,
|
|
||||||
.probe = mostek_probe,
|
.probe = mostek_probe,
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = "mostek",
|
.name = "mostek",
|
||||||
|
.owner = THIS_MODULE,
|
||||||
|
.of_match_table = mostek_match,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -884,9 +884,6 @@ static struct of_device_id mpc52xx_ata_of_match[] = {
|
|||||||
|
|
||||||
|
|
||||||
static struct of_platform_driver mpc52xx_ata_of_platform_driver = {
|
static struct of_platform_driver mpc52xx_ata_of_platform_driver = {
|
||||||
.owner = THIS_MODULE,
|
|
||||||
.name = DRV_NAME,
|
|
||||||
.match_table = mpc52xx_ata_of_match,
|
|
||||||
.probe = mpc52xx_ata_probe,
|
.probe = mpc52xx_ata_probe,
|
||||||
.remove = mpc52xx_ata_remove,
|
.remove = mpc52xx_ata_remove,
|
||||||
#ifdef CONFIG_PM
|
#ifdef CONFIG_PM
|
||||||
@ -896,6 +893,7 @@ static struct of_platform_driver mpc52xx_ata_of_platform_driver = {
|
|||||||
.driver = {
|
.driver = {
|
||||||
.name = DRV_NAME,
|
.name = DRV_NAME,
|
||||||
.owner = THIS_MODULE,
|
.owner = THIS_MODULE,
|
||||||
|
.of_match_table = mpc52xx_ata_of_match,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -91,8 +91,11 @@ static struct of_device_id pata_of_platform_match[] = {
|
|||||||
MODULE_DEVICE_TABLE(of, pata_of_platform_match);
|
MODULE_DEVICE_TABLE(of, pata_of_platform_match);
|
||||||
|
|
||||||
static struct of_platform_driver pata_of_platform_driver = {
|
static struct of_platform_driver pata_of_platform_driver = {
|
||||||
|
.driver = {
|
||||||
.name = "pata_of_platform",
|
.name = "pata_of_platform",
|
||||||
.match_table = pata_of_platform_match,
|
.owner = THIS_MODULE,
|
||||||
|
.of_match_table = pata_of_platform_match,
|
||||||
|
},
|
||||||
.probe = pata_of_platform_probe,
|
.probe = pata_of_platform_probe,
|
||||||
.remove = __devexit_p(pata_of_platform_remove),
|
.remove = __devexit_p(pata_of_platform_remove),
|
||||||
};
|
};
|
||||||
|
@ -1427,8 +1427,11 @@ static struct of_device_id fsl_sata_match[] = {
|
|||||||
MODULE_DEVICE_TABLE(of, fsl_sata_match);
|
MODULE_DEVICE_TABLE(of, fsl_sata_match);
|
||||||
|
|
||||||
static struct of_platform_driver fsl_sata_driver = {
|
static struct of_platform_driver fsl_sata_driver = {
|
||||||
|
.driver = {
|
||||||
.name = "fsl-sata",
|
.name = "fsl-sata",
|
||||||
.match_table = fsl_sata_match,
|
.owner = THIS_MODULE,
|
||||||
|
.of_match_table = fsl_sata_match,
|
||||||
|
},
|
||||||
.probe = sata_fsl_probe,
|
.probe = sata_fsl_probe,
|
||||||
.remove = sata_fsl_remove,
|
.remove = sata_fsl_remove,
|
||||||
#ifdef CONFIG_PM
|
#ifdef CONFIG_PM
|
||||||
|
@ -2695,8 +2695,11 @@ static const struct of_device_id fore200e_sba_match[] = {
|
|||||||
MODULE_DEVICE_TABLE(of, fore200e_sba_match);
|
MODULE_DEVICE_TABLE(of, fore200e_sba_match);
|
||||||
|
|
||||||
static struct of_platform_driver fore200e_sba_driver = {
|
static struct of_platform_driver fore200e_sba_driver = {
|
||||||
|
.driver = {
|
||||||
.name = "fore_200e",
|
.name = "fore_200e",
|
||||||
.match_table = fore200e_sba_match,
|
.owner = THIS_MODULE,
|
||||||
|
.of_match_table = fore200e_sba_match,
|
||||||
|
},
|
||||||
.probe = fore200e_sba_probe,
|
.probe = fore200e_sba_probe,
|
||||||
.remove = __devexit_p(fore200e_sba_remove),
|
.remove = __devexit_p(fore200e_sba_remove),
|
||||||
};
|
};
|
||||||
|
@ -1237,13 +1237,12 @@ static const struct of_device_id ace_of_match[] __devinitconst = {
|
|||||||
MODULE_DEVICE_TABLE(of, ace_of_match);
|
MODULE_DEVICE_TABLE(of, ace_of_match);
|
||||||
|
|
||||||
static struct of_platform_driver ace_of_driver = {
|
static struct of_platform_driver ace_of_driver = {
|
||||||
.owner = THIS_MODULE,
|
|
||||||
.name = "xsysace",
|
|
||||||
.match_table = ace_of_match,
|
|
||||||
.probe = ace_of_probe,
|
.probe = ace_of_probe,
|
||||||
.remove = __devexit_p(ace_of_remove),
|
.remove = __devexit_p(ace_of_remove),
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = "xsysace",
|
.name = "xsysace",
|
||||||
|
.owner = THIS_MODULE,
|
||||||
|
.of_match_table = ace_of_match,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -751,8 +751,11 @@ static const struct of_device_id n2rng_match[] = {
|
|||||||
MODULE_DEVICE_TABLE(of, n2rng_match);
|
MODULE_DEVICE_TABLE(of, n2rng_match);
|
||||||
|
|
||||||
static struct of_platform_driver n2rng_driver = {
|
static struct of_platform_driver n2rng_driver = {
|
||||||
|
.driver = {
|
||||||
.name = "n2rng",
|
.name = "n2rng",
|
||||||
.match_table = n2rng_match,
|
.owner = THIS_MODULE,
|
||||||
|
.of_match_table = n2rng_match,
|
||||||
|
},
|
||||||
.probe = n2rng_probe,
|
.probe = n2rng_probe,
|
||||||
.remove = __devexit_p(n2rng_remove),
|
.remove = __devexit_p(n2rng_remove),
|
||||||
};
|
};
|
||||||
|
@ -140,8 +140,11 @@ static struct of_device_id rng_match[] = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
static struct of_platform_driver rng_driver = {
|
static struct of_platform_driver rng_driver = {
|
||||||
|
.driver = {
|
||||||
.name = "pasemi-rng",
|
.name = "pasemi-rng",
|
||||||
.match_table = rng_match,
|
.owner = THIS_MODULE,
|
||||||
|
.of_match_table = rng_match,
|
||||||
|
},
|
||||||
.probe = rng_probe,
|
.probe = rng_probe,
|
||||||
.remove = rng_remove,
|
.remove = rng_remove,
|
||||||
};
|
};
|
||||||
|
@ -2555,8 +2555,11 @@ static struct of_device_id ipmi_match[] =
|
|||||||
};
|
};
|
||||||
|
|
||||||
static struct of_platform_driver ipmi_of_platform_driver = {
|
static struct of_platform_driver ipmi_of_platform_driver = {
|
||||||
|
.driver = {
|
||||||
.name = "ipmi",
|
.name = "ipmi",
|
||||||
.match_table = ipmi_match,
|
.owner = THIS_MODULE,
|
||||||
|
.of_match_table = ipmi_match,
|
||||||
|
},
|
||||||
.probe = ipmi_of_probe,
|
.probe = ipmi_of_probe,
|
||||||
.remove = __devexit_p(ipmi_of_remove),
|
.remove = __devexit_p(ipmi_of_remove),
|
||||||
};
|
};
|
||||||
|
@ -812,13 +812,12 @@ static const struct of_device_id __devinitconst hwicap_of_match[] = {
|
|||||||
MODULE_DEVICE_TABLE(of, hwicap_of_match);
|
MODULE_DEVICE_TABLE(of, hwicap_of_match);
|
||||||
|
|
||||||
static struct of_platform_driver hwicap_of_driver = {
|
static struct of_platform_driver hwicap_of_driver = {
|
||||||
.owner = THIS_MODULE,
|
|
||||||
.name = DRIVER_NAME,
|
|
||||||
.match_table = hwicap_of_match,
|
|
||||||
.probe = hwicap_of_probe,
|
.probe = hwicap_of_probe,
|
||||||
.remove = __devexit_p(hwicap_of_remove),
|
.remove = __devexit_p(hwicap_of_remove),
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = DRIVER_NAME,
|
.name = DRIVER_NAME,
|
||||||
|
.owner = THIS_MODULE,
|
||||||
|
.of_match_table = hwicap_of_match,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -1281,8 +1281,11 @@ static const struct of_device_id crypto4xx_match[] = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
static struct of_platform_driver crypto4xx_driver = {
|
static struct of_platform_driver crypto4xx_driver = {
|
||||||
|
.driver = {
|
||||||
.name = "crypto4xx",
|
.name = "crypto4xx",
|
||||||
.match_table = crypto4xx_match,
|
.owner = THIS_MODULE,
|
||||||
|
.of_match_table = crypto4xx_match,
|
||||||
|
},
|
||||||
.probe = crypto4xx_probe,
|
.probe = crypto4xx_probe,
|
||||||
.remove = crypto4xx_remove,
|
.remove = crypto4xx_remove,
|
||||||
};
|
};
|
||||||
|
@ -1968,8 +1968,11 @@ static const struct of_device_id talitos_match[] = {
|
|||||||
MODULE_DEVICE_TABLE(of, talitos_match);
|
MODULE_DEVICE_TABLE(of, talitos_match);
|
||||||
|
|
||||||
static struct of_platform_driver talitos_driver = {
|
static struct of_platform_driver talitos_driver = {
|
||||||
|
.driver = {
|
||||||
.name = "talitos",
|
.name = "talitos",
|
||||||
.match_table = talitos_match,
|
.owner = THIS_MODULE,
|
||||||
|
.of_match_table = talitos_match,
|
||||||
|
},
|
||||||
.probe = talitos_probe,
|
.probe = talitos_probe,
|
||||||
.remove = talitos_remove,
|
.remove = talitos_remove,
|
||||||
};
|
};
|
||||||
|
@ -1409,8 +1409,11 @@ static const struct of_device_id fsldma_of_ids[] = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
static struct of_platform_driver fsldma_of_driver = {
|
static struct of_platform_driver fsldma_of_driver = {
|
||||||
|
.driver = {
|
||||||
.name = "fsl-elo-dma",
|
.name = "fsl-elo-dma",
|
||||||
.match_table = fsldma_of_ids,
|
.owner = THIS_MODULE,
|
||||||
|
.of_match_table = fsldma_of_ids,
|
||||||
|
},
|
||||||
.probe = fsldma_of_probe,
|
.probe = fsldma_of_probe,
|
||||||
.remove = fsldma_of_remove,
|
.remove = fsldma_of_remove,
|
||||||
};
|
};
|
||||||
|
@ -4949,12 +4949,12 @@ static const struct of_device_id ppc440spe_adma_of_match[] __devinitconst = {
|
|||||||
MODULE_DEVICE_TABLE(of, ppc440spe_adma_of_match);
|
MODULE_DEVICE_TABLE(of, ppc440spe_adma_of_match);
|
||||||
|
|
||||||
static struct of_platform_driver ppc440spe_adma_driver = {
|
static struct of_platform_driver ppc440spe_adma_driver = {
|
||||||
.match_table = ppc440spe_adma_of_match,
|
|
||||||
.probe = ppc440spe_adma_probe,
|
.probe = ppc440spe_adma_probe,
|
||||||
.remove = __devexit_p(ppc440spe_adma_remove),
|
.remove = __devexit_p(ppc440spe_adma_remove),
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = "PPC440SP(E)-ADMA",
|
.name = "PPC440SP(E)-ADMA",
|
||||||
.owner = THIS_MODULE,
|
.owner = THIS_MODULE,
|
||||||
|
.of_match_table = ppc440spe_adma_of_match,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -338,14 +338,12 @@ static struct of_device_id mpc85xx_pci_err_of_match[] = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
static struct of_platform_driver mpc85xx_pci_err_driver = {
|
static struct of_platform_driver mpc85xx_pci_err_driver = {
|
||||||
.owner = THIS_MODULE,
|
|
||||||
.name = "mpc85xx_pci_err",
|
|
||||||
.match_table = mpc85xx_pci_err_of_match,
|
|
||||||
.probe = mpc85xx_pci_err_probe,
|
.probe = mpc85xx_pci_err_probe,
|
||||||
.remove = __devexit_p(mpc85xx_pci_err_remove),
|
.remove = __devexit_p(mpc85xx_pci_err_remove),
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = "mpc85xx_pci_err",
|
.name = "mpc85xx_pci_err",
|
||||||
.owner = THIS_MODULE,
|
.owner = THIS_MODULE,
|
||||||
|
.of_match_table = mpc85xx_pci_err_of_match,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -654,14 +652,12 @@ static struct of_device_id mpc85xx_l2_err_of_match[] = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
static struct of_platform_driver mpc85xx_l2_err_driver = {
|
static struct of_platform_driver mpc85xx_l2_err_driver = {
|
||||||
.owner = THIS_MODULE,
|
|
||||||
.name = "mpc85xx_l2_err",
|
|
||||||
.match_table = mpc85xx_l2_err_of_match,
|
|
||||||
.probe = mpc85xx_l2_err_probe,
|
.probe = mpc85xx_l2_err_probe,
|
||||||
.remove = mpc85xx_l2_err_remove,
|
.remove = mpc85xx_l2_err_remove,
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = "mpc85xx_l2_err",
|
.name = "mpc85xx_l2_err",
|
||||||
.owner = THIS_MODULE,
|
.owner = THIS_MODULE,
|
||||||
|
.of_match_table = mpc85xx_l2_err_of_match,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -1131,14 +1127,12 @@ static struct of_device_id mpc85xx_mc_err_of_match[] = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
static struct of_platform_driver mpc85xx_mc_err_driver = {
|
static struct of_platform_driver mpc85xx_mc_err_driver = {
|
||||||
.owner = THIS_MODULE,
|
|
||||||
.name = "mpc85xx_mc_err",
|
|
||||||
.match_table = mpc85xx_mc_err_of_match,
|
|
||||||
.probe = mpc85xx_mc_err_probe,
|
.probe = mpc85xx_mc_err_probe,
|
||||||
.remove = mpc85xx_mc_err_remove,
|
.remove = mpc85xx_mc_err_remove,
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = "mpc85xx_mc_err",
|
.name = "mpc85xx_mc_err",
|
||||||
.owner = THIS_MODULE,
|
.owner = THIS_MODULE,
|
||||||
|
.of_match_table = mpc85xx_mc_err_of_match,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -202,13 +202,13 @@ static struct of_device_id ppc4xx_edac_match[] = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
static struct of_platform_driver ppc4xx_edac_driver = {
|
static struct of_platform_driver ppc4xx_edac_driver = {
|
||||||
.match_table = ppc4xx_edac_match,
|
|
||||||
.probe = ppc4xx_edac_probe,
|
.probe = ppc4xx_edac_probe,
|
||||||
.remove = ppc4xx_edac_remove,
|
.remove = ppc4xx_edac_remove,
|
||||||
.driver = {
|
.driver = {
|
||||||
.owner = THIS_MODULE,
|
.owner = THIS_MODULE,
|
||||||
.name = PPC4XX_EDAC_MODULE_NAME
|
.name = PPC4XX_EDAC_MODULE_NAME
|
||||||
}
|
.of_match_table = ppc4xx_edac_match,
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -300,8 +300,11 @@ static const struct of_device_id env_match[] = {
|
|||||||
MODULE_DEVICE_TABLE(of, env_match);
|
MODULE_DEVICE_TABLE(of, env_match);
|
||||||
|
|
||||||
static struct of_platform_driver env_driver = {
|
static struct of_platform_driver env_driver = {
|
||||||
|
.driver = {
|
||||||
.name = "ultra45_env",
|
.name = "ultra45_env",
|
||||||
.match_table = env_match,
|
.owner = THIS_MODULE,
|
||||||
|
.of_match_table = env_match,
|
||||||
|
},
|
||||||
.probe = env_probe,
|
.probe = env_probe,
|
||||||
.remove = __devexit_p(env_remove),
|
.remove = __devexit_p(env_remove),
|
||||||
};
|
};
|
||||||
|
@ -718,13 +718,13 @@ static const struct of_device_id cpm_i2c_match[] = {
|
|||||||
MODULE_DEVICE_TABLE(of, cpm_i2c_match);
|
MODULE_DEVICE_TABLE(of, cpm_i2c_match);
|
||||||
|
|
||||||
static struct of_platform_driver cpm_i2c_driver = {
|
static struct of_platform_driver cpm_i2c_driver = {
|
||||||
.match_table = cpm_i2c_match,
|
|
||||||
.probe = cpm_i2c_probe,
|
.probe = cpm_i2c_probe,
|
||||||
.remove = __devexit_p(cpm_i2c_remove),
|
.remove = __devexit_p(cpm_i2c_remove),
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = "fsl-i2c-cpm",
|
.name = "fsl-i2c-cpm",
|
||||||
.owner = THIS_MODULE,
|
.owner = THIS_MODULE,
|
||||||
}
|
.of_match_table = cpm_i2c_match,
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
static int __init cpm_i2c_init(void)
|
static int __init cpm_i2c_init(void)
|
||||||
|
@ -807,8 +807,11 @@ static const struct of_device_id ibm_iic_match[] = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
static struct of_platform_driver ibm_iic_driver = {
|
static struct of_platform_driver ibm_iic_driver = {
|
||||||
|
.driver = {
|
||||||
.name = "ibm-iic",
|
.name = "ibm-iic",
|
||||||
.match_table = ibm_iic_match,
|
.owner = THIS_MODULE,
|
||||||
|
.of_match_table = ibm_iic_match,
|
||||||
|
},
|
||||||
.probe = iic_probe,
|
.probe = iic_probe,
|
||||||
.remove = __devexit_p(iic_remove),
|
.remove = __devexit_p(iic_remove),
|
||||||
};
|
};
|
||||||
|
@ -675,12 +675,12 @@ MODULE_DEVICE_TABLE(of, mpc_i2c_of_match);
|
|||||||
|
|
||||||
/* Structure for a device driver */
|
/* Structure for a device driver */
|
||||||
static struct of_platform_driver mpc_i2c_driver = {
|
static struct of_platform_driver mpc_i2c_driver = {
|
||||||
.match_table = mpc_i2c_of_match,
|
|
||||||
.probe = fsl_i2c_probe,
|
.probe = fsl_i2c_probe,
|
||||||
.remove = __devexit_p(fsl_i2c_remove),
|
.remove = __devexit_p(fsl_i2c_remove),
|
||||||
.driver = {
|
.driver = {
|
||||||
.owner = THIS_MODULE,
|
.owner = THIS_MODULE,
|
||||||
.name = DRV_NAME,
|
.name = DRV_NAME,
|
||||||
|
.of_match_table = mpc_i2c_of_match,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -937,12 +937,13 @@ static struct of_device_id ehca_device_table[] =
|
|||||||
MODULE_DEVICE_TABLE(of, ehca_device_table);
|
MODULE_DEVICE_TABLE(of, ehca_device_table);
|
||||||
|
|
||||||
static struct of_platform_driver ehca_driver = {
|
static struct of_platform_driver ehca_driver = {
|
||||||
.name = "ehca",
|
|
||||||
.match_table = ehca_device_table,
|
|
||||||
.probe = ehca_probe,
|
.probe = ehca_probe,
|
||||||
.remove = ehca_remove,
|
.remove = ehca_remove,
|
||||||
.driver = {
|
.driver = {
|
||||||
|
.name = "ehca",
|
||||||
|
.owner = THIS_MODULE,
|
||||||
.groups = ehca_drv_attr_groups,
|
.groups = ehca_drv_attr_groups,
|
||||||
|
.of_match_table = ehca_device_table,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -259,8 +259,11 @@ static const struct of_device_id bbc_beep_match[] = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
static struct of_platform_driver bbc_beep_driver = {
|
static struct of_platform_driver bbc_beep_driver = {
|
||||||
|
.driver = {
|
||||||
.name = "bbcbeep",
|
.name = "bbcbeep",
|
||||||
.match_table = bbc_beep_match,
|
.owner = THIS_MODULE,
|
||||||
|
.of_match_table = bbc_beep_match,
|
||||||
|
},
|
||||||
.probe = bbc_beep_probe,
|
.probe = bbc_beep_probe,
|
||||||
.remove = __devexit_p(bbc_remove),
|
.remove = __devexit_p(bbc_remove),
|
||||||
.shutdown = sparcspkr_shutdown,
|
.shutdown = sparcspkr_shutdown,
|
||||||
@ -338,8 +341,11 @@ static const struct of_device_id grover_beep_match[] = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
static struct of_platform_driver grover_beep_driver = {
|
static struct of_platform_driver grover_beep_driver = {
|
||||||
|
.driver = {
|
||||||
.name = "groverbeep",
|
.name = "groverbeep",
|
||||||
.match_table = grover_beep_match,
|
.owner = THIS_MODULE,
|
||||||
|
.of_match_table = grover_beep_match,
|
||||||
|
},
|
||||||
.probe = grover_beep_probe,
|
.probe = grover_beep_probe,
|
||||||
.remove = __devexit_p(grover_remove),
|
.remove = __devexit_p(grover_remove),
|
||||||
.shutdown = sparcspkr_shutdown,
|
.shutdown = sparcspkr_shutdown,
|
||||||
|
@ -96,8 +96,11 @@ static const struct of_device_id sparc_i8042_match[] = {
|
|||||||
MODULE_DEVICE_TABLE(of, sparc_i8042_match);
|
MODULE_DEVICE_TABLE(of, sparc_i8042_match);
|
||||||
|
|
||||||
static struct of_platform_driver sparc_i8042_driver = {
|
static struct of_platform_driver sparc_i8042_driver = {
|
||||||
|
.driver = {
|
||||||
.name = "i8042",
|
.name = "i8042",
|
||||||
.match_table = sparc_i8042_match,
|
.owner = THIS_MODULE,
|
||||||
|
.of_match_table = sparc_i8042_match,
|
||||||
|
},
|
||||||
.probe = sparc_i8042_probe,
|
.probe = sparc_i8042_probe,
|
||||||
.remove = __devexit_p(sparc_i8042_remove),
|
.remove = __devexit_p(sparc_i8042_remove),
|
||||||
};
|
};
|
||||||
|
@ -362,8 +362,11 @@ static const struct of_device_id xps2_of_match[] __devinitconst = {
|
|||||||
MODULE_DEVICE_TABLE(of, xps2_of_match);
|
MODULE_DEVICE_TABLE(of, xps2_of_match);
|
||||||
|
|
||||||
static struct of_platform_driver xps2_of_driver = {
|
static struct of_platform_driver xps2_of_driver = {
|
||||||
|
.driver = {
|
||||||
.name = DRIVER_NAME,
|
.name = DRIVER_NAME,
|
||||||
.match_table = xps2_of_match,
|
.owner = THIS_MODULE,
|
||||||
|
.of_match_table = xps2_of_match,
|
||||||
|
},
|
||||||
.probe = xps2_of_probe,
|
.probe = xps2_of_probe,
|
||||||
.remove = __devexit_p(xps2_of_remove),
|
.remove = __devexit_p(xps2_of_remove),
|
||||||
};
|
};
|
||||||
|
@ -291,8 +291,8 @@ static struct of_platform_driver of_gpio_leds_driver = {
|
|||||||
.driver = {
|
.driver = {
|
||||||
.name = "of_gpio_leds",
|
.name = "of_gpio_leds",
|
||||||
.owner = THIS_MODULE,
|
.owner = THIS_MODULE,
|
||||||
|
.of_match_table = of_gpio_leds_match,
|
||||||
},
|
},
|
||||||
.match_table = of_gpio_leds_match,
|
|
||||||
.probe = of_gpio_leds_probe,
|
.probe = of_gpio_leds_probe,
|
||||||
.remove = __devexit_p(of_gpio_leds_remove),
|
.remove = __devexit_p(of_gpio_leds_remove),
|
||||||
};
|
};
|
||||||
|
@ -671,8 +671,11 @@ static const struct of_device_id smu_platform_match[] =
|
|||||||
|
|
||||||
static struct of_platform_driver smu_of_platform_driver =
|
static struct of_platform_driver smu_of_platform_driver =
|
||||||
{
|
{
|
||||||
|
.driver = {
|
||||||
.name = "smu",
|
.name = "smu",
|
||||||
.match_table = smu_platform_match,
|
.owner = THIS_MODULE,
|
||||||
|
.of_match_table = smu_platform_match,
|
||||||
|
},
|
||||||
.probe = smu_platform_probe,
|
.probe = smu_platform_probe,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -2238,8 +2238,11 @@ static const struct of_device_id fcu_match[] =
|
|||||||
|
|
||||||
static struct of_platform_driver fcu_of_platform_driver =
|
static struct of_platform_driver fcu_of_platform_driver =
|
||||||
{
|
{
|
||||||
|
.driver = {
|
||||||
.name = "temperature",
|
.name = "temperature",
|
||||||
.match_table = fcu_match,
|
.owner = THIS_MODULE,
|
||||||
|
.of_match_table = fcu_match,
|
||||||
|
},
|
||||||
.probe = fcu_of_probe,
|
.probe = fcu_of_probe,
|
||||||
.remove = fcu_of_remove
|
.remove = fcu_of_remove
|
||||||
};
|
};
|
||||||
|
@ -463,8 +463,11 @@ static const struct of_device_id therm_of_match[] = {{
|
|||||||
};
|
};
|
||||||
|
|
||||||
static struct of_platform_driver therm_of_driver = {
|
static struct of_platform_driver therm_of_driver = {
|
||||||
|
.driver = {
|
||||||
.name = "temperature",
|
.name = "temperature",
|
||||||
.match_table = therm_of_match,
|
.owner = THIS_MODULE,
|
||||||
|
.of_match_table = therm_of_match,
|
||||||
|
},
|
||||||
.probe = therm_of_probe,
|
.probe = therm_of_probe,
|
||||||
.remove = therm_of_remove,
|
.remove = therm_of_remove,
|
||||||
};
|
};
|
||||||
|
@ -205,8 +205,11 @@ static const struct of_device_id sdhci_of_match[] = {
|
|||||||
MODULE_DEVICE_TABLE(of, sdhci_of_match);
|
MODULE_DEVICE_TABLE(of, sdhci_of_match);
|
||||||
|
|
||||||
static struct of_platform_driver sdhci_of_driver = {
|
static struct of_platform_driver sdhci_of_driver = {
|
||||||
.driver.name = "sdhci-of",
|
.driver = {
|
||||||
.match_table = sdhci_of_match,
|
.name = "sdhci-of",
|
||||||
|
.owner = THIS_MODULE,
|
||||||
|
.of_match_table = sdhci_of_match,
|
||||||
|
},
|
||||||
.probe = sdhci_of_probe,
|
.probe = sdhci_of_probe,
|
||||||
.remove = __devexit_p(sdhci_of_remove),
|
.remove = __devexit_p(sdhci_of_remove),
|
||||||
.suspend = sdhci_of_suspend,
|
.suspend = sdhci_of_suspend,
|
||||||
|
@ -375,8 +375,11 @@ static struct of_device_id of_flash_match[] = {
|
|||||||
MODULE_DEVICE_TABLE(of, of_flash_match);
|
MODULE_DEVICE_TABLE(of, of_flash_match);
|
||||||
|
|
||||||
static struct of_platform_driver of_flash_driver = {
|
static struct of_platform_driver of_flash_driver = {
|
||||||
|
.driver = {
|
||||||
.name = "of-flash",
|
.name = "of-flash",
|
||||||
.match_table = of_flash_match,
|
.owner = THIS_MODULE,
|
||||||
|
.of_match_table = of_flash_match,
|
||||||
|
},
|
||||||
.probe = of_flash_probe,
|
.probe = of_flash_probe,
|
||||||
.remove = of_flash_remove,
|
.remove = of_flash_remove,
|
||||||
};
|
};
|
||||||
|
@ -149,8 +149,11 @@ static const struct of_device_id uflash_match[] = {
|
|||||||
MODULE_DEVICE_TABLE(of, uflash_match);
|
MODULE_DEVICE_TABLE(of, uflash_match);
|
||||||
|
|
||||||
static struct of_platform_driver uflash_driver = {
|
static struct of_platform_driver uflash_driver = {
|
||||||
|
.driver = {
|
||||||
.name = DRIVER_NAME,
|
.name = DRIVER_NAME,
|
||||||
.match_table = uflash_match,
|
.owner = THIS_MODULE,
|
||||||
|
.of_match_table = uflash_match,
|
||||||
|
},
|
||||||
.probe = uflash_probe,
|
.probe = uflash_probe,
|
||||||
.remove = __devexit_p(uflash_remove),
|
.remove = __devexit_p(uflash_remove),
|
||||||
};
|
};
|
||||||
|
@ -1079,8 +1079,9 @@ static const struct of_device_id fsl_elbc_match[] = {
|
|||||||
static struct of_platform_driver fsl_elbc_ctrl_driver = {
|
static struct of_platform_driver fsl_elbc_ctrl_driver = {
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = "fsl-elbc",
|
.name = "fsl-elbc",
|
||||||
|
.owner = THIS_MODULE,
|
||||||
|
.of_match_table = fsl_elbc_match,
|
||||||
},
|
},
|
||||||
.match_table = fsl_elbc_match,
|
|
||||||
.probe = fsl_elbc_ctrl_probe,
|
.probe = fsl_elbc_ctrl_probe,
|
||||||
.remove = fsl_elbc_ctrl_remove,
|
.remove = fsl_elbc_ctrl_remove,
|
||||||
};
|
};
|
||||||
|
@ -357,8 +357,11 @@ static struct of_device_id of_fun_match[] = {
|
|||||||
MODULE_DEVICE_TABLE(of, of_fun_match);
|
MODULE_DEVICE_TABLE(of, of_fun_match);
|
||||||
|
|
||||||
static struct of_platform_driver of_fun_driver = {
|
static struct of_platform_driver of_fun_driver = {
|
||||||
|
.driver = {
|
||||||
.name = "fsl,upm-nand",
|
.name = "fsl,upm-nand",
|
||||||
.match_table = of_fun_match,
|
.owner = THIS_MODULE,
|
||||||
|
.of_match_table = of_fun_match,
|
||||||
|
},
|
||||||
.probe = fun_probe,
|
.probe = fun_probe,
|
||||||
.remove = __devexit_p(fun_remove),
|
.remove = __devexit_p(fun_remove),
|
||||||
};
|
};
|
||||||
|
@ -295,8 +295,9 @@ MODULE_DEVICE_TABLE(of, ndfc_match);
|
|||||||
static struct of_platform_driver ndfc_driver = {
|
static struct of_platform_driver ndfc_driver = {
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = "ndfc",
|
.name = "ndfc",
|
||||||
|
.owner = THIS_MODULE,
|
||||||
|
.of_match_table = ndfc_match,
|
||||||
},
|
},
|
||||||
.match_table = ndfc_match,
|
|
||||||
.probe = ndfc_probe,
|
.probe = ndfc_probe,
|
||||||
.remove = __devexit_p(ndfc_remove),
|
.remove = __devexit_p(ndfc_remove),
|
||||||
};
|
};
|
||||||
|
@ -221,8 +221,11 @@ MODULE_DEVICE_TABLE(of, pasemi_nand_match);
|
|||||||
|
|
||||||
static struct of_platform_driver pasemi_nand_driver =
|
static struct of_platform_driver pasemi_nand_driver =
|
||||||
{
|
{
|
||||||
|
.driver = {
|
||||||
.name = (char*)driver_name,
|
.name = (char*)driver_name,
|
||||||
.match_table = pasemi_nand_match,
|
.owner = THIS_MODULE,
|
||||||
|
.of_match_table = pasemi_nand_match,
|
||||||
|
},
|
||||||
.probe = pasemi_nand_probe,
|
.probe = pasemi_nand_probe,
|
||||||
.remove = pasemi_nand_remove,
|
.remove = pasemi_nand_remove,
|
||||||
};
|
};
|
||||||
|
@ -301,8 +301,11 @@ static struct of_device_id socrates_nand_match[] =
|
|||||||
MODULE_DEVICE_TABLE(of, socrates_nand_match);
|
MODULE_DEVICE_TABLE(of, socrates_nand_match);
|
||||||
|
|
||||||
static struct of_platform_driver socrates_nand_driver = {
|
static struct of_platform_driver socrates_nand_driver = {
|
||||||
|
.driver = {
|
||||||
.name = "socrates_nand",
|
.name = "socrates_nand",
|
||||||
.match_table = socrates_nand_match,
|
.owner = THIS_MODULE,
|
||||||
|
.of_match_table = socrates_nand_match,
|
||||||
|
},
|
||||||
.probe = socrates_nand_probe,
|
.probe = socrates_nand_probe,
|
||||||
.remove = __devexit_p(socrates_nand_remove),
|
.remove = __devexit_p(socrates_nand_remove),
|
||||||
};
|
};
|
||||||
|
@ -393,15 +393,17 @@ static struct of_device_id __devinitdata mpc5xxx_can_table[] = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
static struct of_platform_driver mpc5xxx_can_driver = {
|
static struct of_platform_driver mpc5xxx_can_driver = {
|
||||||
.owner = THIS_MODULE,
|
.driver = {
|
||||||
.name = "mpc5xxx_can",
|
.name = "mpc5xxx_can",
|
||||||
|
.owner = THIS_MODULE,
|
||||||
|
.of_match_table = mpc5xxx_can_table,
|
||||||
|
},
|
||||||
.probe = mpc5xxx_can_probe,
|
.probe = mpc5xxx_can_probe,
|
||||||
.remove = __devexit_p(mpc5xxx_can_remove),
|
.remove = __devexit_p(mpc5xxx_can_remove),
|
||||||
#ifdef CONFIG_PM
|
#ifdef CONFIG_PM
|
||||||
.suspend = mpc5xxx_can_suspend,
|
.suspend = mpc5xxx_can_suspend,
|
||||||
.resume = mpc5xxx_can_resume,
|
.resume = mpc5xxx_can_resume,
|
||||||
#endif
|
#endif
|
||||||
.match_table = mpc5xxx_can_table,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
static int __init mpc5xxx_can_init(void)
|
static int __init mpc5xxx_can_init(void)
|
||||||
|
@ -216,11 +216,13 @@ static struct of_device_id __devinitdata sja1000_ofp_table[] = {
|
|||||||
MODULE_DEVICE_TABLE(of, sja1000_ofp_table);
|
MODULE_DEVICE_TABLE(of, sja1000_ofp_table);
|
||||||
|
|
||||||
static struct of_platform_driver sja1000_ofp_driver = {
|
static struct of_platform_driver sja1000_ofp_driver = {
|
||||||
|
.driver = {
|
||||||
.owner = THIS_MODULE,
|
.owner = THIS_MODULE,
|
||||||
.name = DRV_NAME,
|
.name = DRV_NAME,
|
||||||
|
.of_match_table = sja1000_ofp_table,
|
||||||
|
},
|
||||||
.probe = sja1000_ofp_probe,
|
.probe = sja1000_ofp_probe,
|
||||||
.remove = __devexit_p(sja1000_ofp_remove),
|
.remove = __devexit_p(sja1000_ofp_remove),
|
||||||
.match_table = sja1000_ofp_table,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
static int __init sja1000_ofp_init(void)
|
static int __init sja1000_ofp_init(void)
|
||||||
|
@ -122,8 +122,11 @@ static struct of_device_id ehea_device_table[] = {
|
|||||||
MODULE_DEVICE_TABLE(of, ehea_device_table);
|
MODULE_DEVICE_TABLE(of, ehea_device_table);
|
||||||
|
|
||||||
static struct of_platform_driver ehea_driver = {
|
static struct of_platform_driver ehea_driver = {
|
||||||
|
.driver = {
|
||||||
.name = "ehea",
|
.name = "ehea",
|
||||||
.match_table = ehea_device_table,
|
.owner = THIS_MODULE,
|
||||||
|
.of_match_table = ehea_device_table,
|
||||||
|
},
|
||||||
.probe = ehea_probe_adapter,
|
.probe = ehea_probe_adapter,
|
||||||
.remove = ehea_remove,
|
.remove = ehea_remove,
|
||||||
};
|
};
|
||||||
|
@ -1065,9 +1065,11 @@ static struct of_device_id mpc52xx_fec_match[] = {
|
|||||||
MODULE_DEVICE_TABLE(of, mpc52xx_fec_match);
|
MODULE_DEVICE_TABLE(of, mpc52xx_fec_match);
|
||||||
|
|
||||||
static struct of_platform_driver mpc52xx_fec_driver = {
|
static struct of_platform_driver mpc52xx_fec_driver = {
|
||||||
.owner = THIS_MODULE,
|
.driver = {
|
||||||
.name = DRIVER_NAME,
|
.name = DRIVER_NAME,
|
||||||
.match_table = mpc52xx_fec_match,
|
.owner = THIS_MODULE,
|
||||||
|
.of_match_table = mpc52xx_fec_match,
|
||||||
|
},
|
||||||
.probe = mpc52xx_fec_probe,
|
.probe = mpc52xx_fec_probe,
|
||||||
.remove = mpc52xx_fec_remove,
|
.remove = mpc52xx_fec_remove,
|
||||||
#ifdef CONFIG_PM
|
#ifdef CONFIG_PM
|
||||||
|
@ -159,10 +159,13 @@ static struct of_device_id mpc52xx_fec_mdio_match[] = {
|
|||||||
MODULE_DEVICE_TABLE(of, mpc52xx_fec_mdio_match);
|
MODULE_DEVICE_TABLE(of, mpc52xx_fec_mdio_match);
|
||||||
|
|
||||||
struct of_platform_driver mpc52xx_fec_mdio_driver = {
|
struct of_platform_driver mpc52xx_fec_mdio_driver = {
|
||||||
|
.driver = {
|
||||||
.name = "mpc5200b-fec-phy",
|
.name = "mpc5200b-fec-phy",
|
||||||
|
.owner = THIS_MODULE,
|
||||||
|
.of_match_table = mpc52xx_fec_mdio_match,
|
||||||
|
},
|
||||||
.probe = mpc52xx_fec_mdio_probe,
|
.probe = mpc52xx_fec_mdio_probe,
|
||||||
.remove = mpc52xx_fec_mdio_remove,
|
.remove = mpc52xx_fec_mdio_remove,
|
||||||
.match_table = mpc52xx_fec_mdio_match,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/* let fec driver call it, since this has to be registered before it */
|
/* let fec driver call it, since this has to be registered before it */
|
||||||
|
@ -1158,8 +1158,11 @@ static struct of_device_id fs_enet_match[] = {
|
|||||||
MODULE_DEVICE_TABLE(of, fs_enet_match);
|
MODULE_DEVICE_TABLE(of, fs_enet_match);
|
||||||
|
|
||||||
static struct of_platform_driver fs_enet_driver = {
|
static struct of_platform_driver fs_enet_driver = {
|
||||||
|
.driver = {
|
||||||
|
.owner = THIS_MODULE,
|
||||||
.name = "fs_enet",
|
.name = "fs_enet",
|
||||||
.match_table = fs_enet_match,
|
.of_match_table = fs_enet_match,
|
||||||
|
},
|
||||||
.probe = fs_enet_probe,
|
.probe = fs_enet_probe,
|
||||||
.remove = fs_enet_remove,
|
.remove = fs_enet_remove,
|
||||||
};
|
};
|
||||||
|
@ -224,8 +224,11 @@ static struct of_device_id fs_enet_mdio_bb_match[] = {
|
|||||||
MODULE_DEVICE_TABLE(of, fs_enet_mdio_bb_match);
|
MODULE_DEVICE_TABLE(of, fs_enet_mdio_bb_match);
|
||||||
|
|
||||||
static struct of_platform_driver fs_enet_bb_mdio_driver = {
|
static struct of_platform_driver fs_enet_bb_mdio_driver = {
|
||||||
|
.driver = {
|
||||||
.name = "fsl-bb-mdio",
|
.name = "fsl-bb-mdio",
|
||||||
.match_table = fs_enet_mdio_bb_match,
|
.owner = THIS_MODULE,
|
||||||
|
.of_match_table = fs_enet_mdio_bb_match,
|
||||||
|
},
|
||||||
.probe = fs_enet_mdio_probe,
|
.probe = fs_enet_mdio_probe,
|
||||||
.remove = fs_enet_mdio_remove,
|
.remove = fs_enet_mdio_remove,
|
||||||
};
|
};
|
||||||
|
@ -222,8 +222,11 @@ static struct of_device_id fs_enet_mdio_fec_match[] = {
|
|||||||
MODULE_DEVICE_TABLE(of, fs_enet_mdio_fec_match);
|
MODULE_DEVICE_TABLE(of, fs_enet_mdio_fec_match);
|
||||||
|
|
||||||
static struct of_platform_driver fs_enet_fec_mdio_driver = {
|
static struct of_platform_driver fs_enet_fec_mdio_driver = {
|
||||||
|
.driver = {
|
||||||
.name = "fsl-fec-mdio",
|
.name = "fsl-fec-mdio",
|
||||||
.match_table = fs_enet_mdio_fec_match,
|
.owner = THIS_MODULE,
|
||||||
|
.of_match_table = fs_enet_mdio_fec_match,
|
||||||
|
},
|
||||||
.probe = fs_enet_mdio_probe,
|
.probe = fs_enet_mdio_probe,
|
||||||
.remove = fs_enet_mdio_remove,
|
.remove = fs_enet_mdio_remove,
|
||||||
};
|
};
|
||||||
|
@ -461,10 +461,13 @@ static struct of_device_id fsl_pq_mdio_match[] = {
|
|||||||
MODULE_DEVICE_TABLE(of, fsl_pq_mdio_match);
|
MODULE_DEVICE_TABLE(of, fsl_pq_mdio_match);
|
||||||
|
|
||||||
static struct of_platform_driver fsl_pq_mdio_driver = {
|
static struct of_platform_driver fsl_pq_mdio_driver = {
|
||||||
|
.driver = {
|
||||||
.name = "fsl-pq_mdio",
|
.name = "fsl-pq_mdio",
|
||||||
|
.owner = THIS_MODULE,
|
||||||
|
.of_match_table = fsl_pq_mdio_match,
|
||||||
|
},
|
||||||
.probe = fsl_pq_mdio_probe,
|
.probe = fsl_pq_mdio_probe,
|
||||||
.remove = fsl_pq_mdio_remove,
|
.remove = fsl_pq_mdio_remove,
|
||||||
.match_table = fsl_pq_mdio_match,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
int __init fsl_pq_mdio_init(void)
|
int __init fsl_pq_mdio_init(void)
|
||||||
|
@ -3054,14 +3054,16 @@ MODULE_DEVICE_TABLE(of, gfar_match);
|
|||||||
|
|
||||||
/* Structure for a device driver */
|
/* Structure for a device driver */
|
||||||
static struct of_platform_driver gfar_driver = {
|
static struct of_platform_driver gfar_driver = {
|
||||||
|
.driver = {
|
||||||
.name = "fsl-gianfar",
|
.name = "fsl-gianfar",
|
||||||
.match_table = gfar_match,
|
.owner = THIS_MODULE,
|
||||||
|
.pm = GFAR_PM_OPS,
|
||||||
|
.of_match_table = gfar_match,
|
||||||
|
},
|
||||||
.probe = gfar_probe,
|
.probe = gfar_probe,
|
||||||
.remove = gfar_remove,
|
.remove = gfar_remove,
|
||||||
.suspend = gfar_legacy_suspend,
|
.suspend = gfar_legacy_suspend,
|
||||||
.resume = gfar_legacy_resume,
|
.resume = gfar_legacy_resume,
|
||||||
.driver.pm = GFAR_PM_OPS,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
static int __init gfar_init(void)
|
static int __init gfar_init(void)
|
||||||
|
@ -2996,9 +2996,11 @@ static struct of_device_id emac_match[] =
|
|||||||
MODULE_DEVICE_TABLE(of, emac_match);
|
MODULE_DEVICE_TABLE(of, emac_match);
|
||||||
|
|
||||||
static struct of_platform_driver emac_driver = {
|
static struct of_platform_driver emac_driver = {
|
||||||
|
.driver = {
|
||||||
.name = "emac",
|
.name = "emac",
|
||||||
.match_table = emac_match,
|
.owner = THIS_MODULE,
|
||||||
|
.of_match_table = emac_match,
|
||||||
|
},
|
||||||
.probe = emac_probe,
|
.probe = emac_probe,
|
||||||
.remove = emac_remove,
|
.remove = emac_remove,
|
||||||
};
|
};
|
||||||
|
@ -790,9 +790,11 @@ static struct of_device_id mal_platform_match[] =
|
|||||||
};
|
};
|
||||||
|
|
||||||
static struct of_platform_driver mal_of_driver = {
|
static struct of_platform_driver mal_of_driver = {
|
||||||
|
.driver = {
|
||||||
.name = "mcmal",
|
.name = "mcmal",
|
||||||
.match_table = mal_platform_match,
|
.owner = THIS_MODULE,
|
||||||
|
.of_match_table = mal_platform_match,
|
||||||
|
},
|
||||||
.probe = mal_probe,
|
.probe = mal_probe,
|
||||||
.remove = mal_remove,
|
.remove = mal_remove,
|
||||||
};
|
};
|
||||||
|
@ -319,9 +319,11 @@ static struct of_device_id rgmii_match[] =
|
|||||||
};
|
};
|
||||||
|
|
||||||
static struct of_platform_driver rgmii_driver = {
|
static struct of_platform_driver rgmii_driver = {
|
||||||
|
.driver = {
|
||||||
.name = "emac-rgmii",
|
.name = "emac-rgmii",
|
||||||
.match_table = rgmii_match,
|
.owner = THIS_MODULE,
|
||||||
|
.of_match_table = rgmii_match,
|
||||||
|
},
|
||||||
.probe = rgmii_probe,
|
.probe = rgmii_probe,
|
||||||
.remove = rgmii_remove,
|
.remove = rgmii_remove,
|
||||||
};
|
};
|
||||||
|
@ -166,9 +166,11 @@ static struct of_device_id tah_match[] =
|
|||||||
};
|
};
|
||||||
|
|
||||||
static struct of_platform_driver tah_driver = {
|
static struct of_platform_driver tah_driver = {
|
||||||
|
.driver = {
|
||||||
.name = "emac-tah",
|
.name = "emac-tah",
|
||||||
.match_table = tah_match,
|
.owner = THIS_MODULE,
|
||||||
|
.of_match_table = tah_match,
|
||||||
|
},
|
||||||
.probe = tah_probe,
|
.probe = tah_probe,
|
||||||
.remove = tah_remove,
|
.remove = tah_remove,
|
||||||
};
|
};
|
||||||
|
@ -313,9 +313,11 @@ static struct of_device_id zmii_match[] =
|
|||||||
};
|
};
|
||||||
|
|
||||||
static struct of_platform_driver zmii_driver = {
|
static struct of_platform_driver zmii_driver = {
|
||||||
|
.driver = {
|
||||||
.name = "emac-zmii",
|
.name = "emac-zmii",
|
||||||
.match_table = zmii_match,
|
.owner = THIS_MODULE,
|
||||||
|
.of_match_table = zmii_match,
|
||||||
|
},
|
||||||
.probe = zmii_probe,
|
.probe = zmii_probe,
|
||||||
.remove = zmii_remove,
|
.remove = zmii_remove,
|
||||||
};
|
};
|
||||||
|
@ -955,12 +955,12 @@ static struct of_device_id temac_of_match[] __devinitdata = {
|
|||||||
MODULE_DEVICE_TABLE(of, temac_of_match);
|
MODULE_DEVICE_TABLE(of, temac_of_match);
|
||||||
|
|
||||||
static struct of_platform_driver temac_of_driver = {
|
static struct of_platform_driver temac_of_driver = {
|
||||||
.match_table = temac_of_match,
|
|
||||||
.probe = temac_of_probe,
|
.probe = temac_of_probe,
|
||||||
.remove = __devexit_p(temac_of_remove),
|
.remove = __devexit_p(temac_of_remove),
|
||||||
.driver = {
|
.driver = {
|
||||||
.owner = THIS_MODULE,
|
.owner = THIS_MODULE,
|
||||||
.name = "xilinx_temac",
|
.name = "xilinx_temac",
|
||||||
|
.of_match_table = temac_of_match,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -1161,8 +1161,11 @@ static const struct of_device_id myri_sbus_match[] = {
|
|||||||
MODULE_DEVICE_TABLE(of, myri_sbus_match);
|
MODULE_DEVICE_TABLE(of, myri_sbus_match);
|
||||||
|
|
||||||
static struct of_platform_driver myri_sbus_driver = {
|
static struct of_platform_driver myri_sbus_driver = {
|
||||||
|
.driver = {
|
||||||
.name = "myri",
|
.name = "myri",
|
||||||
.match_table = myri_sbus_match,
|
.owner = THIS_MODULE,
|
||||||
|
.of_match_table = myri_sbus_match,
|
||||||
|
},
|
||||||
.probe = myri_sbus_probe,
|
.probe = myri_sbus_probe,
|
||||||
.remove = __devexit_p(myri_sbus_remove),
|
.remove = __devexit_p(myri_sbus_remove),
|
||||||
};
|
};
|
||||||
|
@ -10207,8 +10207,11 @@ static const struct of_device_id niu_match[] = {
|
|||||||
MODULE_DEVICE_TABLE(of, niu_match);
|
MODULE_DEVICE_TABLE(of, niu_match);
|
||||||
|
|
||||||
static struct of_platform_driver niu_of_driver = {
|
static struct of_platform_driver niu_of_driver = {
|
||||||
|
.driver = {
|
||||||
.name = "niu",
|
.name = "niu",
|
||||||
.match_table = niu_match,
|
.owner = THIS_MODULE,
|
||||||
|
.of_match_table = niu_match,
|
||||||
|
},
|
||||||
.probe = niu_of_probe,
|
.probe = niu_of_probe,
|
||||||
.remove = __devexit_p(niu_of_remove),
|
.remove = __devexit_p(niu_of_remove),
|
||||||
};
|
};
|
||||||
|
@ -241,8 +241,11 @@ static struct of_device_id mdio_ofgpio_match[] = {
|
|||||||
MODULE_DEVICE_TABLE(of, mdio_ofgpio_match);
|
MODULE_DEVICE_TABLE(of, mdio_ofgpio_match);
|
||||||
|
|
||||||
static struct of_platform_driver mdio_ofgpio_driver = {
|
static struct of_platform_driver mdio_ofgpio_driver = {
|
||||||
|
.driver = {
|
||||||
.name = "mdio-gpio",
|
.name = "mdio-gpio",
|
||||||
.match_table = mdio_ofgpio_match,
|
.owner = THIS_MODULE,
|
||||||
|
.of_match_table = mdio_ofgpio_match,
|
||||||
|
},
|
||||||
.probe = mdio_ofgpio_probe,
|
.probe = mdio_ofgpio_probe,
|
||||||
.remove = __devexit_p(mdio_ofgpio_remove),
|
.remove = __devexit_p(mdio_ofgpio_remove),
|
||||||
};
|
};
|
||||||
|
@ -1292,8 +1292,11 @@ static const struct of_device_id bigmac_sbus_match[] = {
|
|||||||
MODULE_DEVICE_TABLE(of, bigmac_sbus_match);
|
MODULE_DEVICE_TABLE(of, bigmac_sbus_match);
|
||||||
|
|
||||||
static struct of_platform_driver bigmac_sbus_driver = {
|
static struct of_platform_driver bigmac_sbus_driver = {
|
||||||
|
.driver = {
|
||||||
.name = "sunbmac",
|
.name = "sunbmac",
|
||||||
.match_table = bigmac_sbus_match,
|
.owner = THIS_MODULE,
|
||||||
|
.of_match_table = bigmac_sbus_match,
|
||||||
|
},
|
||||||
.probe = bigmac_sbus_probe,
|
.probe = bigmac_sbus_probe,
|
||||||
.remove = __devexit_p(bigmac_sbus_remove),
|
.remove = __devexit_p(bigmac_sbus_remove),
|
||||||
};
|
};
|
||||||
|
@ -3295,8 +3295,11 @@ static const struct of_device_id hme_sbus_match[] = {
|
|||||||
MODULE_DEVICE_TABLE(of, hme_sbus_match);
|
MODULE_DEVICE_TABLE(of, hme_sbus_match);
|
||||||
|
|
||||||
static struct of_platform_driver hme_sbus_driver = {
|
static struct of_platform_driver hme_sbus_driver = {
|
||||||
|
.driver = {
|
||||||
.name = "hme",
|
.name = "hme",
|
||||||
.match_table = hme_sbus_match,
|
.owner = THIS_MODULE,
|
||||||
|
.of_match_table = hme_sbus_match,
|
||||||
|
},
|
||||||
.probe = hme_sbus_probe,
|
.probe = hme_sbus_probe,
|
||||||
.remove = __devexit_p(hme_sbus_remove),
|
.remove = __devexit_p(hme_sbus_remove),
|
||||||
};
|
};
|
||||||
|
@ -1546,8 +1546,11 @@ static const struct of_device_id sunlance_sbus_match[] = {
|
|||||||
MODULE_DEVICE_TABLE(of, sunlance_sbus_match);
|
MODULE_DEVICE_TABLE(of, sunlance_sbus_match);
|
||||||
|
|
||||||
static struct of_platform_driver sunlance_sbus_driver = {
|
static struct of_platform_driver sunlance_sbus_driver = {
|
||||||
|
.driver = {
|
||||||
.name = "sunlance",
|
.name = "sunlance",
|
||||||
.match_table = sunlance_sbus_match,
|
.owner = THIS_MODULE,
|
||||||
|
.of_match_table = sunlance_sbus_match,
|
||||||
|
},
|
||||||
.probe = sunlance_sbus_probe,
|
.probe = sunlance_sbus_probe,
|
||||||
.remove = __devexit_p(sunlance_sbus_remove),
|
.remove = __devexit_p(sunlance_sbus_remove),
|
||||||
};
|
};
|
||||||
|
@ -978,8 +978,11 @@ static const struct of_device_id qec_sbus_match[] = {
|
|||||||
MODULE_DEVICE_TABLE(of, qec_sbus_match);
|
MODULE_DEVICE_TABLE(of, qec_sbus_match);
|
||||||
|
|
||||||
static struct of_platform_driver qec_sbus_driver = {
|
static struct of_platform_driver qec_sbus_driver = {
|
||||||
|
.driver = {
|
||||||
.name = "qec",
|
.name = "qec",
|
||||||
.match_table = qec_sbus_match,
|
.owner = THIS_MODULE,
|
||||||
|
.of_match_table = qec_sbus_match,
|
||||||
|
},
|
||||||
.probe = qec_sbus_probe,
|
.probe = qec_sbus_probe,
|
||||||
.remove = __devexit_p(qec_sbus_remove),
|
.remove = __devexit_p(qec_sbus_remove),
|
||||||
};
|
};
|
||||||
|
@ -3965,8 +3965,11 @@ static struct of_device_id ucc_geth_match[] = {
|
|||||||
MODULE_DEVICE_TABLE(of, ucc_geth_match);
|
MODULE_DEVICE_TABLE(of, ucc_geth_match);
|
||||||
|
|
||||||
static struct of_platform_driver ucc_geth_driver = {
|
static struct of_platform_driver ucc_geth_driver = {
|
||||||
|
.driver = {
|
||||||
.name = DRV_NAME,
|
.name = DRV_NAME,
|
||||||
.match_table = ucc_geth_match,
|
.owner = THIS_MODULE,
|
||||||
|
.of_match_table = ucc_geth_match,
|
||||||
|
},
|
||||||
.probe = ucc_geth_probe,
|
.probe = ucc_geth_probe,
|
||||||
.remove = ucc_geth_remove,
|
.remove = ucc_geth_remove,
|
||||||
.suspend = ucc_geth_suspend,
|
.suspend = ucc_geth_suspend,
|
||||||
|
@ -1293,8 +1293,11 @@ static struct of_device_id xemaclite_of_match[] __devinitdata = {
|
|||||||
MODULE_DEVICE_TABLE(of, xemaclite_of_match);
|
MODULE_DEVICE_TABLE(of, xemaclite_of_match);
|
||||||
|
|
||||||
static struct of_platform_driver xemaclite_of_driver = {
|
static struct of_platform_driver xemaclite_of_driver = {
|
||||||
|
.driver = {
|
||||||
.name = DRIVER_NAME,
|
.name = DRIVER_NAME,
|
||||||
.match_table = xemaclite_of_match,
|
.owner = THIS_MODULE,
|
||||||
|
.of_match_table = xemaclite_of_match,
|
||||||
|
},
|
||||||
.probe = xemaclite_of_probe,
|
.probe = xemaclite_of_probe,
|
||||||
.remove = __devexit_p(xemaclite_of_remove),
|
.remove = __devexit_p(xemaclite_of_remove),
|
||||||
};
|
};
|
||||||
|
@ -385,13 +385,6 @@ int of_bus_type_init(struct bus_type *bus, const char *name)
|
|||||||
|
|
||||||
int of_register_driver(struct of_platform_driver *drv, struct bus_type *bus)
|
int of_register_driver(struct of_platform_driver *drv, struct bus_type *bus)
|
||||||
{
|
{
|
||||||
/* initialize common driver fields */
|
|
||||||
if (!drv->driver.name)
|
|
||||||
drv->driver.name = drv->name;
|
|
||||||
if (!drv->driver.owner)
|
|
||||||
drv->driver.owner = drv->owner;
|
|
||||||
if (!drv->driver.of_match_table)
|
|
||||||
drv->driver.of_match_table = drv->match_table;
|
|
||||||
drv->driver.bus = bus;
|
drv->driver.bus = bus;
|
||||||
|
|
||||||
/* register with core */
|
/* register with core */
|
||||||
|
@ -382,8 +382,11 @@ static const struct of_device_id bpp_match[] = {
|
|||||||
MODULE_DEVICE_TABLE(of, bpp_match);
|
MODULE_DEVICE_TABLE(of, bpp_match);
|
||||||
|
|
||||||
static struct of_platform_driver bpp_sbus_driver = {
|
static struct of_platform_driver bpp_sbus_driver = {
|
||||||
|
.driver = {
|
||||||
.name = "bpp",
|
.name = "bpp",
|
||||||
.match_table = bpp_match,
|
.owner = THIS_MODULE,
|
||||||
|
.of_match_table = bpp_match,
|
||||||
|
},
|
||||||
.probe = bpp_probe,
|
.probe = bpp_probe,
|
||||||
.remove = __devexit_p(bpp_remove),
|
.remove = __devexit_p(bpp_remove),
|
||||||
};
|
};
|
||||||
|
@ -357,8 +357,11 @@ static const struct of_device_id electra_cf_match[] = {
|
|||||||
MODULE_DEVICE_TABLE(of, electra_cf_match);
|
MODULE_DEVICE_TABLE(of, electra_cf_match);
|
||||||
|
|
||||||
static struct of_platform_driver electra_cf_driver = {
|
static struct of_platform_driver electra_cf_driver = {
|
||||||
|
.driver = {
|
||||||
.name = (char *)driver_name,
|
.name = (char *)driver_name,
|
||||||
.match_table = electra_cf_match,
|
.owner = THIS_MODULE,
|
||||||
|
.of_match_table = electra_cf_match,
|
||||||
|
},
|
||||||
.probe = electra_cf_probe,
|
.probe = electra_cf_probe,
|
||||||
.remove = electra_cf_remove,
|
.remove = electra_cf_remove,
|
||||||
};
|
};
|
||||||
|
@ -1298,8 +1298,11 @@ static const struct of_device_id m8xx_pcmcia_match[] = {
|
|||||||
MODULE_DEVICE_TABLE(of, m8xx_pcmcia_match);
|
MODULE_DEVICE_TABLE(of, m8xx_pcmcia_match);
|
||||||
|
|
||||||
static struct of_platform_driver m8xx_pcmcia_driver = {
|
static struct of_platform_driver m8xx_pcmcia_driver = {
|
||||||
|
.driver = {
|
||||||
.name = driver_name,
|
.name = driver_name,
|
||||||
|
.owner = THIS_MODULE,
|
||||||
.match_table = m8xx_pcmcia_match,
|
.match_table = m8xx_pcmcia_match,
|
||||||
|
},
|
||||||
.probe = m8xx_probe,
|
.probe = m8xx_probe,
|
||||||
.remove = m8xx_remove,
|
.remove = m8xx_remove,
|
||||||
};
|
};
|
||||||
|
@ -414,8 +414,11 @@ static const struct of_device_id bbc_i2c_match[] = {
|
|||||||
MODULE_DEVICE_TABLE(of, bbc_i2c_match);
|
MODULE_DEVICE_TABLE(of, bbc_i2c_match);
|
||||||
|
|
||||||
static struct of_platform_driver bbc_i2c_driver = {
|
static struct of_platform_driver bbc_i2c_driver = {
|
||||||
|
.driver = {
|
||||||
.name = "bbc_i2c",
|
.name = "bbc_i2c",
|
||||||
.match_table = bbc_i2c_match,
|
.owner = THIS_MODULE,
|
||||||
|
.of_match_table = bbc_i2c_match,
|
||||||
|
},
|
||||||
.probe = bbc_i2c_probe,
|
.probe = bbc_i2c_probe,
|
||||||
.remove = __devexit_p(bbc_i2c_remove),
|
.remove = __devexit_p(bbc_i2c_remove),
|
||||||
};
|
};
|
||||||
|
@ -266,8 +266,11 @@ static const struct of_device_id d7s_match[] = {
|
|||||||
MODULE_DEVICE_TABLE(of, d7s_match);
|
MODULE_DEVICE_TABLE(of, d7s_match);
|
||||||
|
|
||||||
static struct of_platform_driver d7s_driver = {
|
static struct of_platform_driver d7s_driver = {
|
||||||
|
.driver = {
|
||||||
.name = DRIVER_NAME,
|
.name = DRIVER_NAME,
|
||||||
.match_table = d7s_match,
|
.owner = THIS_MODULE,
|
||||||
|
.of_match_table = d7s_match,
|
||||||
|
},
|
||||||
.probe = d7s_probe,
|
.probe = d7s_probe,
|
||||||
.remove = __devexit_p(d7s_remove),
|
.remove = __devexit_p(d7s_remove),
|
||||||
};
|
};
|
||||||
|
@ -1131,8 +1131,11 @@ static const struct of_device_id envctrl_match[] = {
|
|||||||
MODULE_DEVICE_TABLE(of, envctrl_match);
|
MODULE_DEVICE_TABLE(of, envctrl_match);
|
||||||
|
|
||||||
static struct of_platform_driver envctrl_driver = {
|
static struct of_platform_driver envctrl_driver = {
|
||||||
|
.driver = {
|
||||||
.name = DRIVER_NAME,
|
.name = DRIVER_NAME,
|
||||||
.match_table = envctrl_match,
|
.owner = THIS_MODULE,
|
||||||
|
.of_match_table = envctrl_match,
|
||||||
|
},
|
||||||
.probe = envctrl_probe,
|
.probe = envctrl_probe,
|
||||||
.remove = __devexit_p(envctrl_remove),
|
.remove = __devexit_p(envctrl_remove),
|
||||||
};
|
};
|
||||||
|
@ -207,8 +207,11 @@ static const struct of_device_id flash_match[] = {
|
|||||||
MODULE_DEVICE_TABLE(of, flash_match);
|
MODULE_DEVICE_TABLE(of, flash_match);
|
||||||
|
|
||||||
static struct of_platform_driver flash_driver = {
|
static struct of_platform_driver flash_driver = {
|
||||||
|
.driver = {
|
||||||
.name = "flash",
|
.name = "flash",
|
||||||
.match_table = flash_match,
|
.owner = THIS_MODULE,
|
||||||
|
.of_match_table = flash_match,
|
||||||
|
},
|
||||||
.probe = flash_probe,
|
.probe = flash_probe,
|
||||||
.remove = __devexit_p(flash_remove),
|
.remove = __devexit_p(flash_remove),
|
||||||
};
|
};
|
||||||
|
@ -425,8 +425,11 @@ static const struct of_device_id uctrl_match[] = {
|
|||||||
MODULE_DEVICE_TABLE(of, uctrl_match);
|
MODULE_DEVICE_TABLE(of, uctrl_match);
|
||||||
|
|
||||||
static struct of_platform_driver uctrl_driver = {
|
static struct of_platform_driver uctrl_driver = {
|
||||||
|
.driver = {
|
||||||
.name = "uctrl",
|
.name = "uctrl",
|
||||||
.match_table = uctrl_match,
|
.owner = THIS_MODULE,
|
||||||
|
.of_match_table = uctrl_match,
|
||||||
|
},
|
||||||
.probe = uctrl_probe,
|
.probe = uctrl_probe,
|
||||||
.remove = __devexit_p(uctrl_remove),
|
.remove = __devexit_p(uctrl_remove),
|
||||||
};
|
};
|
||||||
|
@ -1456,8 +1456,11 @@ static const struct of_device_id qpti_match[] = {
|
|||||||
MODULE_DEVICE_TABLE(of, qpti_match);
|
MODULE_DEVICE_TABLE(of, qpti_match);
|
||||||
|
|
||||||
static struct of_platform_driver qpti_sbus_driver = {
|
static struct of_platform_driver qpti_sbus_driver = {
|
||||||
|
.driver = {
|
||||||
.name = "qpti",
|
.name = "qpti",
|
||||||
.match_table = qpti_match,
|
.owner = THIS_MODULE,
|
||||||
|
.of_match_table = qpti_match,
|
||||||
|
},
|
||||||
.probe = qpti_sbus_probe,
|
.probe = qpti_sbus_probe,
|
||||||
.remove = __devexit_p(qpti_sbus_remove),
|
.remove = __devexit_p(qpti_sbus_remove),
|
||||||
};
|
};
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user