hwmon: (iio_hwmon) Drop bogus __refdata annotation
authorGeert Uytterhoeven <geert+renesas@glider.be>
Fri, 11 Dec 2020 13:35:12 +0000 (14:35 +0100)
committerGuenter Roeck <linux@roeck-us.net>
Fri, 11 Dec 2020 15:42:27 +0000 (07:42 -0800)
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>
drivers/hwmon/iio_hwmon.c

index b85a125dd86f46a26ac817bd42a718c4ad97310c..580a7d125b88667b2c2a3cc26fe29a064339915f 100644 (file)
@@ -169,7 +169,7 @@ static const struct of_device_id iio_hwmon_of_match[] = {
 };
 MODULE_DEVICE_TABLE(of, iio_hwmon_of_match);
 
-static struct platform_driver __refdata iio_hwmon_driver = {
+static struct platform_driver iio_hwmon_driver = {
        .driver = {
                .name = "iio_hwmon",
                .of_match_table = iio_hwmon_of_match,