diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-03-16 20:28:10 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-03-16 20:28:10 -0400 |
commit | 4c5811bf463b0ef82fabbd1708f8bb2d753aeb18 (patch) | |
tree | ff37d31217c3804ca05de21a55a9b5ca1ca818b2 /drivers/block | |
parent | f74b9444192c60603020c61d7915b72893137edc (diff) | |
parent | 9f15444fefdb33509132ff5c9be60cb315c44cb2 (diff) |
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
...
Diffstat (limited to 'drivers/block')
-rw-r--r-- | drivers/block/xsysace.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/drivers/block/xsysace.c b/drivers/block/xsysace.c index 829161edae53..2c590a796aa1 100644 --- a/drivers/block/xsysace.c +++ b/drivers/block/xsysace.c | |||
@@ -1195,16 +1195,13 @@ static struct platform_driver ace_platform_driver = { | |||
1195 | */ | 1195 | */ |
1196 | 1196 | ||
1197 | #if defined(CONFIG_OF) | 1197 | #if defined(CONFIG_OF) |
1198 | static int __devinit | 1198 | static int __devinit ace_of_probe(struct platform_device *op) |
1199 | ace_of_probe(struct platform_device *op, const struct of_device_id *match) | ||
1200 | { | 1199 | { |
1201 | struct resource res; | 1200 | struct resource res; |
1202 | resource_size_t physaddr; | 1201 | resource_size_t physaddr; |
1203 | const u32 *id; | 1202 | const u32 *id; |
1204 | int irq, bus_width, rc; | 1203 | int irq, bus_width, rc; |
1205 | 1204 | ||
1206 | dev_dbg(&op->dev, "ace_of_probe(%p, %p)\n", op, match); | ||
1207 | |||
1208 | /* device id */ | 1205 | /* device id */ |
1209 | id = of_get_property(op->dev.of_node, "port-number", NULL); | 1206 | id = of_get_property(op->dev.of_node, "port-number", NULL); |
1210 | 1207 | ||
@@ -1245,7 +1242,7 @@ static const struct of_device_id ace_of_match[] __devinitconst = { | |||
1245 | }; | 1242 | }; |
1246 | MODULE_DEVICE_TABLE(of, ace_of_match); | 1243 | MODULE_DEVICE_TABLE(of, ace_of_match); |
1247 | 1244 | ||
1248 | static struct of_platform_driver ace_of_driver = { | 1245 | static struct platform_driver ace_of_driver = { |
1249 | .probe = ace_of_probe, | 1246 | .probe = ace_of_probe, |
1250 | .remove = __devexit_p(ace_of_remove), | 1247 | .remove = __devexit_p(ace_of_remove), |
1251 | .driver = { | 1248 | .driver = { |
@@ -1259,12 +1256,12 @@ static struct of_platform_driver ace_of_driver = { | |||
1259 | static inline int __init ace_of_register(void) | 1256 | static inline int __init ace_of_register(void) |
1260 | { | 1257 | { |
1261 | pr_debug("xsysace: registering OF binding\n"); | 1258 | pr_debug("xsysace: registering OF binding\n"); |
1262 | return of_register_platform_driver(&ace_of_driver); | 1259 | return platform_driver_register(&ace_of_driver); |
1263 | } | 1260 | } |
1264 | 1261 | ||
1265 | static inline void __exit ace_of_unregister(void) | 1262 | static inline void __exit ace_of_unregister(void) |
1266 | { | 1263 | { |
1267 | of_unregister_platform_driver(&ace_of_driver); | 1264 | platform_driver_unregister(&ace_of_driver); |
1268 | } | 1265 | } |
1269 | #else /* CONFIG_OF */ | 1266 | #else /* CONFIG_OF */ |
1270 | /* CONFIG_OF not enabled; do nothing helpers */ | 1267 | /* CONFIG_OF not enabled; do nothing helpers */ |