iio: light: isl29018: Only declare ACPI table when ACPI is enabled
authorMatthias Kaehlcke <mka@chromium.org>
Fri, 19 May 2017 21:28:53 +0000 (14:28 -0700)
committerJonathan Cameron <jic23@kernel.org>
Sat, 20 May 2017 16:07:09 +0000 (17:07 +0100)
commit14b39dce373191f8fd7a703a643dccf0f97f0323
treed87c7688f2d8cb07e7cf2ef351f266d41ecfa19d
parent138bc7969c24c6cbba28e919c2376ad10a46fc60
iio: light: isl29018: Only declare ACPI table when ACPI is enabled

This fixes the following warning when building with clang:

drivers/iio/light/isl29018.c:808:36: error: variable
    'isl29018_acpi_match' is not needed and will not be emitted
    [-Werror,-Wunneeded-internal-declaration]

Signed-off-by: Matthias Kaehlcke <mka@chromium.org>
Reviewed-by: Guenter Roeck <groeck@chromium.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/light/isl29018.c