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

hwmon: (xgene) Drop bogus __refdata annotation

As the X-Gene hardware monitoring driver does not have any code or data
located in initmem, there is no need to annotate the xgene_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/20201211133531.2970027-1-geert+renesas@glider.be
Signed-off-by: Guenter Roeck <linux@roeck-us.net>

authored by

Geert Uytterhoeven and committed by
Guenter Roeck
fb42dce4 15d4a6f7

+1 -1
+1 -1
drivers/hwmon/xgene-hwmon.c
··· 784 784 }; 785 785 MODULE_DEVICE_TABLE(of, xgene_hwmon_of_match); 786 786 787 - static struct platform_driver xgene_hwmon_driver __refdata = { 787 + static struct platform_driver xgene_hwmon_driver = { 788 788 .probe = xgene_hwmon_probe, 789 789 .remove = xgene_hwmon_remove, 790 790 .driver = {