diff options
author | Arnd Bergmann <arnd@arndb.de> | 2013-02-14 17:26:54 -0500 |
---|---|---|
committer | Simon Horman <horms+renesas@verge.net.au> | 2013-03-18 08:27:02 -0400 |
commit | b3425eb9df0a57f0b4ce0ad66831028f6ffe1615 (patch) | |
tree | ebc74b72c6e593308ad7edc9c6fc2553d5bf33de /arch | |
parent | 626a645eb75415255aad3162f4da3f6988f0c8ec (diff) |
ARM: shmobile: mark mackerel sh_mmcif_device __maybe_unused
Patch eac036ef9e "ARM: shmobile: streamline mackerel SD and MMC devices"
made the use of the sh_mmcif_device variable for mackarel optional,
but the definition is always provided, causing a build warning.
arch/arm/mach-shmobile/board-mackerel.c:1120:31: warning: 'sh_mmcif_device'
defined but not used [-Wunused-variable]
Marking the variable as __maybe_unused will do the right thing here.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Cc: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-shmobile/board-mackerel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-shmobile/board-mackerel.c b/arch/arm/mach-shmobile/board-mackerel.c index fb058c763a7d..ef22ec4dafae 100644 --- a/arch/arm/mach-shmobile/board-mackerel.c +++ b/arch/arm/mach-shmobile/board-mackerel.c | |||
@@ -1118,7 +1118,7 @@ static struct sh_mmcif_plat_data sh_mmcif_plat = { | |||
1118 | .slave_id_rx = SHDMA_SLAVE_MMCIF_RX, | 1118 | .slave_id_rx = SHDMA_SLAVE_MMCIF_RX, |
1119 | }; | 1119 | }; |
1120 | 1120 | ||
1121 | static struct platform_device sh_mmcif_device = { | 1121 | static struct platform_device sh_mmcif_device __maybe_unused = { |
1122 | .name = "sh_mmcif", | 1122 | .name = "sh_mmcif", |
1123 | .id = 0, | 1123 | .id = 0, |
1124 | .dev = { | 1124 | .dev = { |