diff options
author | Finn Thain <fthain@telegraphics.com.au> | 2009-11-04 00:39:56 +1100 |
---|---|---|
committer | Geert Uytterhoeven <geert@linux-m68k.org> | 2010-02-27 18:27:15 +0100 |
commit | 2724daf439d9f4e9f25c9fb8de8602ba61758478 (patch) | |
tree | eb15e7240b92813d8e945869424b2616a57b3999 /drivers/block | |
parent | 53aac0ad7cb32af5c25d432454f936b57bf8c11f (diff) | |
download | blackbird-op-linux-2724daf439d9f4e9f25c9fb8de8602ba61758478.tar.gz blackbird-op-linux-2724daf439d9f4e9f25c9fb8de8602ba61758478.zip |
mac68k: rework SWIM platform device
Adjust the platform device code to conform with the code style used in the
rest of this patch series. No need to name resources nor to register
devices which are not applicable.
Signed-off-by: Finn Thain <fthain@telegraphics.com.au>
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Diffstat (limited to 'drivers/block')
-rw-r--r-- | drivers/block/swim.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/block/swim.c b/drivers/block/swim.c index 8f569e3df890..821c2833f9cf 100644 --- a/drivers/block/swim.c +++ b/drivers/block/swim.c @@ -864,7 +864,7 @@ static int __devinit swim_probe(struct platform_device *dev) struct swim_priv *swd; int ret; - res = platform_get_resource_byname(dev, IORESOURCE_MEM, "swim-regs"); + res = platform_get_resource(dev, IORESOURCE_MEM, 0); if (!res) { ret = -ENODEV; goto out; @@ -942,7 +942,7 @@ static int __devexit swim_remove(struct platform_device *dev) iounmap(swd->base); - res = platform_get_resource_byname(dev, IORESOURCE_MEM, "swim-regs"); + res = platform_get_resource(dev, IORESOURCE_MEM, 0); if (res) release_mem_region(res->start, resource_size(res)); |