diff options
Diffstat (limited to 'drivers/block/xsysace.c')
-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 */ |