diff options
Diffstat (limited to 'drivers/hwmon/sht15.c')
-rw-r--r-- | drivers/hwmon/sht15.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/hwmon/sht15.c b/drivers/hwmon/sht15.c index 2da6fb2c325e..ebe38b680ee3 100644 --- a/drivers/hwmon/sht15.c +++ b/drivers/hwmon/sht15.c | |||
@@ -623,7 +623,12 @@ static int __devexit sht15_remove(struct platform_device *pdev) | |||
623 | } | 623 | } |
624 | 624 | ||
625 | 625 | ||
626 | static struct platform_driver sht_drivers[] = { | 626 | /* |
627 | * sht_drivers simultaneously refers to __devinit and __devexit function | ||
628 | * which causes spurious section mismatch warning. So use __refdata to | ||
629 | * get rid from this. | ||
630 | */ | ||
631 | static struct platform_driver __refdata sht_drivers[] = { | ||
627 | { | 632 | { |
628 | .driver = { | 633 | .driver = { |
629 | .name = "sht10", | 634 | .name = "sht10", |