diff mbox

[1/2] arch/arm/mach-omap2/dma.c: Convert IS_ERR result to PTR_ERR

Message ID 1296143347-17508-1-git-send-email-julia@diku.dk (mailing list archive)
State Accepted
Commit 0e6d8cad448bde3d846961bb43db15daae94562e
Headers show

Commit Message

Julia Lawall Jan. 27, 2011, 3:49 p.m. UTC
None
diff mbox

Patch

diff -u -p a/arch/arm/mach-omap2/dma.c b/arch/arm/mach-omap2/dma.c
--- a/arch/arm/mach-omap2/dma.c
+++ b/arch/arm/mach-omap2/dma.c
@@ -264,7 +264,7 @@  static int __init omap2_system_dma_init_
 	if (IS_ERR(od)) {
 		pr_err("%s: Cant build omap_device for %s:%s.\n",
 			__func__, name, oh->name);
-		return IS_ERR(od);
+		return PTR_ERR(od);
 	}
 
 	mem = platform_get_resource(&od->pdev, IORESOURCE_MEM, 0);