From: Kumar Gala Date: Fri, 8 Dec 2006 08:23:07 +0000 (-0600) Subject: [POWERPC] of_device_register: propagate device_create_file return code X-Git-Tag: upstream/snapshot3+hdmi~36573^2~15^2~1^2~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=39043a5b3d0b1b92b20209b6d401fb70c17177b4;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git [POWERPC] of_device_register: propagate device_create_file return code Removed compiler warning about ignoring the return code of device_create_file in of_device_register. Signed-off-by: Kumar Gala --- diff --git a/arch/powerpc/kernel/of_device.c b/arch/powerpc/kernel/of_device.c index 8a06724..e921514 100644 --- a/arch/powerpc/kernel/of_device.c +++ b/arch/powerpc/kernel/of_device.c @@ -109,9 +109,7 @@ int of_device_register(struct of_device *ofdev) if (rc) return rc; - device_create_file(&ofdev->dev, &dev_attr_devspec); - - return 0; + return device_create_file(&ofdev->dev, &dev_attr_devspec); } void of_device_unregister(struct of_device *ofdev)