Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

hwmon: (iio_hwmon) Drop bogus __refdata annotation

As the IIO hardware monitoring driver does not have any code or data
located in initmem, there is no need to annotate the iio_hwmon_driver
structure with __refdata. Drop the annotation, to avoid suppressing
future section warnings.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/20201211133512.2969952-1-geert+renesas@glider.be
Signed-off-by: Guenter Roeck <linux@roeck-us.net>

authored by

Geert Uytterhoeven and committed by
Guenter Roeck
561e3121 fb42dce4

+1 -1
+1 -1
drivers/hwmon/iio_hwmon.c
··· 169 169 }; 170 170 MODULE_DEVICE_TABLE(of, iio_hwmon_of_match); 171 171 172 - static struct platform_driver __refdata iio_hwmon_driver = { 172 + static struct platform_driver iio_hwmon_driver = { 173 173 .driver = { 174 174 .name = "iio_hwmon", 175 175 .of_match_table = iio_hwmon_of_match,