diff options
author | Kumar Gala <galak@kernel.crashing.org> | 2006-12-08 02:23:07 -0600 |
---|---|---|
committer | Kumar Gala <galak@kernel.crashing.org> | 2006-12-08 02:23:07 -0600 |
commit | 39043a5b3d0b1b92b20209b6d401fb70c17177b4 (patch) | |
tree | dd3e1d4a6337ebe330f8364554a94c3c27914e99 | |
parent | c99767974ebd2a719d849fdeaaa1674456f5283f (diff) |
[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 <galak@kernel.crashing.org>
-rw-r--r-- | arch/powerpc/kernel/of_device.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/powerpc/kernel/of_device.c b/arch/powerpc/kernel/of_device.c index 8a06724e029..e921514e655 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) |