You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
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>
This commit is contained in:
committed by
Geert Uytterhoeven
parent
53aac0ad7c
commit
2724daf439
@@ -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));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user