diff options
author | Grant Likely <grant.likely@secretlab.ca> | 2011-02-22 23:07:43 -0500 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2011-02-28 15:22:45 -0500 |
commit | 28541d0f1894cd0c8f4a90c6e006c88d38ad3ac0 (patch) | |
tree | 9d735279860b9f5e499cdf8bd67bf790c92dbebd /drivers/video/fsl-diu-fb.c | |
parent | 74888760d40b3ac9054f9c5fa07b566c0676ba2d (diff) |
dt/video: Eliminate users of of_platform_{,un}register_driver
Get rid of users of of_platform_driver in drivers/video. The
of_platform_{,un}register_driver functions are going away, so the
users need to be converted to using the platform_bus_type directly.
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'drivers/video/fsl-diu-fb.c')
-rw-r--r-- | drivers/video/fsl-diu-fb.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/video/fsl-diu-fb.c b/drivers/video/fsl-diu-fb.c index 8bbbf08fa3ce..9048f87fa8c1 100644 --- a/drivers/video/fsl-diu-fb.c +++ b/drivers/video/fsl-diu-fb.c | |||
@@ -1487,8 +1487,7 @@ static ssize_t show_monitor(struct device *device, | |||
1487 | return diu_ops.show_monitor_port(machine_data->monitor_port, buf); | 1487 | return diu_ops.show_monitor_port(machine_data->monitor_port, buf); |
1488 | } | 1488 | } |
1489 | 1489 | ||
1490 | static int __devinit fsl_diu_probe(struct platform_device *ofdev, | 1490 | static int __devinit fsl_diu_probe(struct platform_device *ofdev) |
1491 | const struct of_device_id *match) | ||
1492 | { | 1491 | { |
1493 | struct device_node *np = ofdev->dev.of_node; | 1492 | struct device_node *np = ofdev->dev.of_node; |
1494 | struct mfb_info *mfbi; | 1493 | struct mfb_info *mfbi; |
@@ -1735,7 +1734,7 @@ static struct of_device_id fsl_diu_match[] = { | |||
1735 | }; | 1734 | }; |
1736 | MODULE_DEVICE_TABLE(of, fsl_diu_match); | 1735 | MODULE_DEVICE_TABLE(of, fsl_diu_match); |
1737 | 1736 | ||
1738 | static struct of_platform_driver fsl_diu_driver = { | 1737 | static struct platform_driver fsl_diu_driver = { |
1739 | .driver = { | 1738 | .driver = { |
1740 | .name = "fsl_diu", | 1739 | .name = "fsl_diu", |
1741 | .owner = THIS_MODULE, | 1740 | .owner = THIS_MODULE, |
@@ -1797,7 +1796,7 @@ static int __init fsl_diu_init(void) | |||
1797 | if (!coherence_data) | 1796 | if (!coherence_data) |
1798 | return -ENOMEM; | 1797 | return -ENOMEM; |
1799 | #endif | 1798 | #endif |
1800 | ret = of_register_platform_driver(&fsl_diu_driver); | 1799 | ret = platform_driver_register(&fsl_diu_driver); |
1801 | if (ret) { | 1800 | if (ret) { |
1802 | printk(KERN_ERR | 1801 | printk(KERN_ERR |
1803 | "fsl-diu: failed to register platform driver\n"); | 1802 | "fsl-diu: failed to register platform driver\n"); |
@@ -1811,7 +1810,7 @@ static int __init fsl_diu_init(void) | |||
1811 | 1810 | ||
1812 | static void __exit fsl_diu_exit(void) | 1811 | static void __exit fsl_diu_exit(void) |
1813 | { | 1812 | { |
1814 | of_unregister_platform_driver(&fsl_diu_driver); | 1813 | platform_driver_unregister(&fsl_diu_driver); |
1815 | #if defined(CONFIG_NOT_COHERENT_CACHE) | 1814 | #if defined(CONFIG_NOT_COHERENT_CACHE) |
1816 | vfree(coherence_data); | 1815 | vfree(coherence_data); |
1817 | #endif | 1816 | #endif |