diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2012-03-30 22:04:55 +0200 |
---|---|---|
committer | Guenter Roeck <guenter.roeck@ericsson.com> | 2012-04-01 19:24:36 +0200 |
commit | 6f7805a8d9dc6fa8af999f8603188157505558d9 (patch) | |
tree | 69bd439afdba007019204a0580c97495c3d4b033 /drivers/hwmon/adt7470.c | |
parent | hwmon: (acpi_power_meter) fix lockdep spew due to non-static lock class (diff) | |
download | linux-6f7805a8d9dc6fa8af999f8603188157505558d9.tar.xz linux-6f7805a8d9dc6fa8af999f8603188157505558d9.zip |
hwmon: (w83627ehf) mark const init data with __initconst instead of __initdata
As long as there is no other non-const variable marked __initdata in the
same compilation unit it doesn't hurt. If there were one however
compilation would fail with
error: $variablename causes a section type conflict
because a section containing const variables is marked read only and so
cannot contain non-const variables.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Cc: Jean Delvare <khali@linux-fr.org>
Cc: Guenter Roeck <guenter.roeck@ericsson.com>
Cc: lm-sensors@lm-sensors.org
Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
Diffstat (limited to 'drivers/hwmon/adt7470.c')
0 files changed, 0 insertions, 0 deletions