[PATCH 12/27] Initconst section fixes for hwmon

From: Andi Kleen
Date: Thu Sep 15 2011 - 16:15:58 EST


From: Andi Kleen <ak@xxxxxxxxxxxxxxx>

Signed-off-by: Andi Kleen <ak@xxxxxxxxxxxxxxx>
---
drivers/hwmon/w83627ehf.c | 16 ++++++++--------
drivers/hwmon/w83627hf.c | 2 +-
2 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/drivers/hwmon/w83627ehf.c b/drivers/hwmon/w83627ehf.c
index f2b377c..85827a3 100644
--- a/drivers/hwmon/w83627ehf.c
+++ b/drivers/hwmon/w83627ehf.c
@@ -2309,14 +2309,14 @@ static struct platform_driver w83627ehf_driver = {
static int __init w83627ehf_find(int sioaddr, unsigned short *addr,
struct w83627ehf_sio_data *sio_data)
{
- static const char __initdata sio_name_W83627EHF[] = "W83627EHF";
- static const char __initdata sio_name_W83627EHG[] = "W83627EHG";
- static const char __initdata sio_name_W83627DHG[] = "W83627DHG";
- static const char __initdata sio_name_W83627DHG_P[] = "W83627DHG-P";
- static const char __initdata sio_name_W83667HG[] = "W83667HG";
- static const char __initdata sio_name_W83667HG_B[] = "W83667HG-B";
- static const char __initdata sio_name_NCT6775[] = "NCT6775F";
- static const char __initdata sio_name_NCT6776[] = "NCT6776F";
+ static const char __initconst sio_name_W83627EHF[] = "W83627EHF";
+ static const char __initconst sio_name_W83627EHG[] = "W83627EHG";
+ static const char __initconst sio_name_W83627DHG[] = "W83627DHG";
+ static const char __initconst sio_name_W83627DHG_P[] = "W83627DHG-P";
+ static const char __initconst sio_name_W83667HG[] = "W83667HG";
+ static const char __initconst sio_name_W83667HG_B[] = "W83667HG-B";
+ static const char __initconst sio_name_NCT6775[] = "NCT6775F";
+ static const char __initconst sio_name_NCT6776[] = "NCT6776F";

u16 val;
const char *sio_name;
diff --git a/drivers/hwmon/w83627hf.c b/drivers/hwmon/w83627hf.c
index bde50e3..d152014 100644
--- a/drivers/hwmon/w83627hf.c
+++ b/drivers/hwmon/w83627hf.c
@@ -1129,7 +1129,7 @@ static int __init w83627hf_find(int sioaddr, unsigned short *addr,
int err = -ENODEV;
u16 val;

- static const __initdata char *names[] = {
+ static __initconst char *const names[] = {
"W83627HF",
"W83627THF",
"W83697HF",
--
1.7.4.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/