Commit 08432e0e authored by Richard Purdie's avatar Richard Purdie Committed by Russell King

[ARM PATCH] 2386/1: Tidy up Sharp SCOOP driver coding style

Patch from Richard Purdie

Tidy up a couple of coding style issues in the Sharp SCOOP Driver

Signed-off-by: Richard Purdie
Signed-off-by: Russell King
parent e078f2ee
......@@ -100,11 +100,13 @@ int __init scoop_probe(struct device *dev)
struct platform_device *pdev = to_platform_device(dev);
struct resource *mem = platform_get_resource(pdev, IORESOURCE_MEM, 0);
if (!mem) return -EINVAL;
if (!mem)
return -EINVAL;
inf = dev->platform_data;
scoop_io_base = ioremap(mem->start, 0x1000);
if (!scoop_io_base) return -ENOMEM;
if (!scoop_io_base)
return -ENOMEM;
SCOOP_REG(SCOOP_MCR) = 0x0140;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment