diff options
author | Josh Cartwright <joshc@codeaurora.org> | 2013-12-20 14:09:14 -0500 |
---|---|---|
committer | Olof Johansson <olof@lixom.net> | 2014-01-02 13:16:56 -0500 |
commit | c4b4ecbda50379b587ccff81663f3235582e5c66 (patch) | |
tree | daa41f4d6ad01d24c0f3a2c0406aba5db6779c5c /arch/arm/mach-msm/board-trout.c | |
parent | 374b105797c3d4f29c685f3be535c35f5689b30e (diff) |
ARM: msm: trout: fix uninit var warning
Fix the following warning when !CONFIG_MMC:
arch/arm/mach-msm/board-trout.c: In function 'trout_init':
arch/arm/mach-msm/board-trout.c:67:6: warning: unused variable 'rc' [-Wunused-variable]
int rc;
^
Also, while we're here, rework explicit printk(KERN_CRIT..) to use
pr_crit.
Signed-off-by: Josh Cartwright <joshc@codeaurora.org>
Signed-off-by: David Brown <davidb@codeaurora.org>
Signed-off-by: Olof Johansson <olof@lixom.net>
Diffstat (limited to 'arch/arm/mach-msm/board-trout.c')
-rw-r--r-- | arch/arm/mach-msm/board-trout.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/arch/arm/mach-msm/board-trout.c b/arch/arm/mach-msm/board-trout.c index ccf6621bc664..015d544aa017 100644 --- a/arch/arm/mach-msm/board-trout.c +++ b/arch/arm/mach-msm/board-trout.c | |||
@@ -13,6 +13,7 @@ | |||
13 | * GNU General Public License for more details. | 13 | * GNU General Public License for more details. |
14 | * | 14 | * |
15 | */ | 15 | */ |
16 | #define pr_fmt(fmt) "%s: " fmt, __func__ | ||
16 | 17 | ||
17 | #include <linux/kernel.h> | 18 | #include <linux/kernel.h> |
18 | #include <linux/init.h> | 19 | #include <linux/init.h> |
@@ -68,12 +69,11 @@ static void __init trout_init(void) | |||
68 | 69 | ||
69 | platform_add_devices(devices, ARRAY_SIZE(devices)); | 70 | platform_add_devices(devices, ARRAY_SIZE(devices)); |
70 | 71 | ||
71 | #ifdef CONFIG_MMC | 72 | if (IS_ENABLED(CONFIG_MMC)) { |
72 | rc = trout_init_mmc(system_rev); | 73 | rc = trout_init_mmc(system_rev); |
73 | if (rc) | 74 | if (rc) |
74 | printk(KERN_CRIT "%s: MMC init failure (%d)\n", __func__, rc); | 75 | pr_crit("MMC init failure (%d)\n", rc); |
75 | #endif | 76 | } |
76 | |||
77 | } | 77 | } |
78 | 78 | ||
79 | static struct map_desc trout_io_desc[] __initdata = { | 79 | static struct map_desc trout_io_desc[] __initdata = { |