]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: omap: resolve nebulous 'Error setting wl12xx data'
authorRussell King <rmk+kernel@arm.linux.org.uk>
Tue, 7 Feb 2012 11:03:23 +0000 (11:03 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 13 Feb 2012 10:00:39 +0000 (10:00 +0000)
commit76b4463d0d6210e3ce2132512d0877dcd4ab5755
treed71e3018964cb80fb8a00dabdb8aa74b6814e69c
parente6583fbdcd729258e817967ea7d0e7ad038b244e
ARM: omap: resolve nebulous 'Error setting wl12xx data'

It's useful to print the error code when a called function fails so a
diagnosis of why it failed is possible.  In this case, it fails because
we try to register some data for the wl12xx driver, but as the driver
is not configured, a stub function is used which simply returns -ENOSYS.

Let's do the simple thing for -rc and print the error code.

Also, the return code from platform_register_device() at each of these
sites was not being checked.  Add some checking, and again print the
error code.

This should be fixed properly for the next merge window so we don't
issue error messages merely because a driver is not configured.

Acked-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mach-omap2/board-4430sdp.c
arch/arm/mach-omap2/board-omap3evm.c
arch/arm/mach-omap2/board-omap4panda.c
arch/arm/mach-omap2/board-zoom-peripherals.c