diff options
Diffstat (limited to 'drivers')
-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 303c02694c3c..64bd6e5a1406 100644 --- a/drivers/hwmon/sht15.c +++ b/drivers/hwmon/sht15.c | |||
@@ -622,7 +622,12 @@ static int __devexit sht15_remove(struct platform_device *pdev) | |||
622 | } | 622 | } |
623 | 623 | ||
624 | 624 | ||
625 | static struct platform_driver sht_drivers[] = { | 625 | /* |
626 | * sht_drivers simultaneously refers to __devinit and __devexit function | ||
627 | * which causes spurious section mismatch warning. So use __refdata to | ||
628 | * get rid from this. | ||
629 | */ | ||
630 | static struct platform_driver __refdata sht_drivers[] = { | ||
626 | { | 631 | { |
627 | .driver = { | 632 | .driver = { |
628 | .name = "sht10", | 633 | .name = "sht10", |