]> Pileus Git - ~andy/linux/blobdiff - drivers/hwmon/sht15.c
perf/probes: Improve error messages
[~andy/linux] / drivers / hwmon / sht15.c
index 2da6fb2c325e47d83875139e407246cc855b9a9f..ebe38b680ee38494520c5cf162e50a027ab21799 100644 (file)
@@ -623,7 +623,12 @@ static int __devexit sht15_remove(struct platform_device *pdev)
 }
 
 
-static struct platform_driver sht_drivers[] = {
+/*
+ * sht_drivers simultaneously refers to __devinit and __devexit function
+ * which causes spurious section mismatch warning. So use __refdata to
+ * get rid from this.
+ */
+static struct platform_driver __refdata sht_drivers[] = {
        {
                .driver = {
                        .name = "sht10",