Merge branch 'devicetree/next' of git://git.secretlab.ca/git/linux-2.6
* 'devicetree/next' of git://git.secretlab.ca/git/linux-2.6: (21 commits) tty: serial: altera_jtaguart: Add device tree support tty: serial: altera_uart: Add devicetree support dt: eliminate of_platform_driver shim code dt: Eliminate of_platform_{,un}register_driver dt/serial: Eliminate users of of_platform_{,un}register_driver dt/usb: Eliminate users of of_platform_{,un}register_driver dt/video: Eliminate users of of_platform_{,un}register_driver dt/net: Eliminate users of of_platform_{,un}register_driver dt/sound: Eliminate users of of_platform_{,un}register_driver dt/spi: Eliminate users of of_platform_{,un}register_driver dt: uartlite: merge platform and of_platform driver bindings dt: xilinx_hwicap: merge platform and of_platform driver bindings ipmi: convert OF driver to platform driver leds/leds-gpio: merge platform_driver with of_platform_driver dt/sparc: Eliminate users of of_platform_{,un}register_driver dt/powerpc: Eliminate users of of_platform_{,un}register_driver dt/powerpc: move of_bus_type infrastructure to ibmebus drivercore/dt: add a match table pointer to struct device dt: Typo fix. altera_ps2: Add devicetree support ...
This commit is contained in:
@@ -248,8 +248,7 @@ static const struct rtc_class_ops mpc5121_rtc_ops = {
|
||||
.alarm_irq_enable = mpc5121_rtc_alarm_irq_enable,
|
||||
};
|
||||
|
||||
static int __devinit mpc5121_rtc_probe(struct platform_device *op,
|
||||
const struct of_device_id *match)
|
||||
static int __devinit mpc5121_rtc_probe(struct platform_device *op)
|
||||
{
|
||||
struct mpc5121_rtc_data *rtc;
|
||||
int err = 0;
|
||||
@@ -344,7 +343,7 @@ static struct of_device_id mpc5121_rtc_match[] __devinitdata = {
|
||||
{},
|
||||
};
|
||||
|
||||
static struct of_platform_driver mpc5121_rtc_driver = {
|
||||
static struct platform_driver mpc5121_rtc_driver = {
|
||||
.driver = {
|
||||
.name = "mpc5121-rtc",
|
||||
.owner = THIS_MODULE,
|
||||
@@ -356,13 +355,13 @@ static struct of_platform_driver mpc5121_rtc_driver = {
|
||||
|
||||
static int __init mpc5121_rtc_init(void)
|
||||
{
|
||||
return of_register_platform_driver(&mpc5121_rtc_driver);
|
||||
return platform_driver_register(&mpc5121_rtc_driver);
|
||||
}
|
||||
module_init(mpc5121_rtc_init);
|
||||
|
||||
static void __exit mpc5121_rtc_exit(void)
|
||||
{
|
||||
of_unregister_platform_driver(&mpc5121_rtc_driver);
|
||||
platform_driver_unregister(&mpc5121_rtc_driver);
|
||||
}
|
||||
module_exit(mpc5121_rtc_exit);
|
||||
|
||||
|
Reference in New Issue
Block a user