ARM: shark: fix shark_pci_init return code
authorArnd Bergmann <arnd@arndb.de>
Mon, 30 Apr 2012 16:36:59 +0000 (16:36 +0000)
committerArnd Bergmann <arnd@arndb.de>
Thu, 4 Oct 2012 08:19:51 +0000 (10:19 +0200)
When run on the wrong platform, the shark_pci_init function
returns an undefined value, as reported by a gcc warning,
so let's just return -ENODEV.

Without this patch, building shark_defconfig results in:

arch/arm/mach-shark/pci.c: In function 'shark_pci_init':
arch/arm/mach-shark/pci.c:42:3: warning: 'return' with no value, in function returning non-void [-Wreturn-type]

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Cc: "Krzysztof Halasa" <khc@pm.waw.pl>

No differences found