From: Arnd Bergmann Date: Mon, 30 Apr 2012 16:36:59 +0000 (+0000) Subject: ARM: shark: fix shark_pci_init return code X-Git-Tag: v3.7-rc1~38^2~5^2~17 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9c7f4f5ce6523af6b6e103a991b2ca71b962acb7;p=pandora-kernel.git ARM: shark: fix shark_pci_init return code 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 Cc: "Krzysztof Halasa" --- Reading git-diff-tree failed