From: G, Manjunath Kondaiah Date: Tue, 21 Sep 2010 10:01:17 +0000 (+0530) Subject: mfd: Fix twl-core sparse warning X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2cfcce18bb09667f583f4a29e814cbadf1d4e525;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git mfd: Fix twl-core sparse warning Fixes below sparse warning. drivers/mfd/twl-core.c:258:20: warning: symbol 'twl_map' was not declared. Should it be static? Signed-off-by: G, Manjunath Kondaiah Cc: linux-arm-kernel@lists.infradead.org Cc: Tony Lindgren Cc: Nishanth Menon Signed-off-by: Samuel Ortiz --- diff --git a/drivers/mfd/twl-core.c b/drivers/mfd/twl-core.c index b0f2c0004efe..e77e1ffd26a9 100644 --- a/drivers/mfd/twl-core.c +++ b/drivers/mfd/twl-core.c @@ -249,7 +249,7 @@ struct twl_mapping { unsigned char sid; /* Slave ID */ unsigned char base; /* base address */ }; -struct twl_mapping *twl_map; +static struct twl_mapping *twl_map; static struct twl_mapping twl4030_map[TWL4030_MODULE_LAST + 1] = { /*