From: Axel Lin Date: Fri, 9 Dec 2011 03:28:56 +0000 (+0800) Subject: mfd: Don't declare jz4740_adc_cells const X-Git-Tag: v3.3-rc1~71^2~36 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aa05c9cf5e6e7266588468d9683d7c38fb8022d6;p=pandora-kernel.git mfd: Don't declare jz4740_adc_cells const Remove the const keyword to fix below warning: CC drivers/mfd/jz4740-adc.o drivers/mfd/jz4740-adc.c: In function 'jz4740_adc_probe': drivers/mfd/jz4740-adc.c:290: warning: passing argument 3 of 'mfd_add_devices' discards qualifiers from pointer target type include/linux/mfd/core.h:93: note: expected 'struct mfd_cell *' but argument is of type 'const struct mfd_cell *' Also make jz4740_adc_cells static, is not used outside this driver so no need to make the symbol global. Signed-off-by: Axel Lin Signed-off-by: Samuel Ortiz --- Reading git-diff-tree failed