From: Lars-Peter Clausen Date: Tue, 6 Mar 2012 19:43:45 +0000 (+0100) Subject: staging:iio: Fix compile error without CONFIG_DEBUG_FS X-Git-Tag: v3.4-rc1~186^2~74 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4fee7e168ba08ed067ee9aafe4a0a19387117be4;p=pandora-kernel.git staging:iio: Fix compile error without CONFIG_DEBUG_FS commit e553f182d ("staging: iio: core: Introduce debugfs support, add support for direct register access") added a '#if defined(CONFIG_DEBUG_FS)' around iio_read_channel_ext_info and iio_write_channel_ext_info causing the following compile error if CONFIG_DEBUG_FS is not defined. drivers/staging/iio/industrialio-core.c:621:11: error: 'iio_read_channel_ext_info' undeclared (first use in this function) drivers/staging/iio/industrialio-core.c:623:11: error: 'iio_write_channel_ext_info' undeclared (first use in this function) This patch fixes the issue by moving the functions out of the '#if defined(CONFIG_DEBUG_FS)' section again. Reported-by: Randy Dunlap Signed-off-by: Lars-Peter Clausen Acked-by: Randy Dunlap Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed