[SPARC64]: of_device_register() error checking fix
authorAndrew Morton <akpm@osdl.org>
Mon, 10 Jul 2006 22:28:54 +0000 (15:28 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Thu, 13 Jul 2006 08:50:01 +0000 (01:50 -0700)
commit6cc8b6f51eb1af72882c279f691c5de7d5a43bf2
treea7806a7c0e9016508806a80ca4ef0ff59225f5d2
parente47f31787dee5bf57453e18edefff56e17fa44f9
[SPARC64]: of_device_register() error checking fix

device_create_file() can fail.  This causes the sparc64 compile to
fail when my fanatical __must_check patch is applied, due to -Werror.

[ Added necessary identical fix for sparc32. -DaveM]

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/kernel/of_device.c
arch/sparc64/kernel/of_device.c