projects
/
platform
/
adaptation
/
renesas_rcar
/
renesas_kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c997679
)
[POWERPC] of_device_register: propagate device_create_file return code
author
Kumar Gala
<galak@kernel.crashing.org>
Fri, 8 Dec 2006 08:23:07 +0000
(
02:23
-0600)
committer
Kumar Gala
<galak@kernel.crashing.org>
Fri, 8 Dec 2006 08:23:07 +0000
(
02:23
-0600)
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>
arch/powerpc/kernel/of_device.c
patch
|
blob
|
history
diff --git
a/arch/powerpc/kernel/of_device.c
b/arch/powerpc/kernel/of_device.c
index
8a06724
..
e921514
100644
(file)
--- 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)