Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi
[sfrench/cifs-2.6.git] / drivers / scsi / mac_scsi.c
index 181f16899fdc239d527d7823a16f1a8bbaaaa229..a402c4dc4645d3ac894b39469837d9524a9ba6bb 100644 (file)
@@ -534,7 +534,13 @@ static void __exit mac_scsi_remove(struct platform_device *pdev)
        scsi_host_put(instance);
 }
 
-static struct platform_driver mac_scsi_driver = {
+/*
+ * mac_scsi_remove() lives in .exit.text. For drivers registered via
+ * module_platform_driver_probe() this is ok because they cannot get unbound at
+ * runtime. So mark the driver struct with __refdata to prevent modpost
+ * triggering a section mismatch warning.
+ */
+static struct platform_driver mac_scsi_driver __refdata = {
        .remove_new = __exit_p(mac_scsi_remove),
        .driver = {
                .name   = DRV_MODULE_NAME,