]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
parisc/scsi/zalon: Fix section mismatches
authorHelge Deller <deller@gmx.de>
Mon, 21 Aug 2017 19:56:59 +0000 (21:56 +0200)
committerHelge Deller <deller@gmx.de>
Tue, 22 Aug 2017 14:34:36 +0000 (16:34 +0200)
Signed-off-by: Helge Deller <deller@gmx.de>
drivers/scsi/zalon.c

index b2cf1faa819db0e6c74b07b160f57042e97f997c..4722660958f81681f545f9b5ae251227e14d4725 100644 (file)
@@ -160,14 +160,14 @@ zalon_probe(struct parisc_device *dev)
        return error;
 }
 
-static struct parisc_device_id zalon_tbl[] = {
+static const struct parisc_device_id zalon_tbl[] __initconst = {
        { HPHW_A_DMA, HVERSION_REV_ANY_ID, HVERSION_ANY_ID, 0x00089 }, 
        { 0, }
 };
 
 MODULE_DEVICE_TABLE(parisc, zalon_tbl);
 
-static int zalon_remove(struct parisc_device *dev)
+static int __exit zalon_remove(struct parisc_device *dev)
 {
        struct Scsi_Host *host = dev_get_drvdata(&dev->dev);
 
@@ -178,11 +178,11 @@ static int zalon_remove(struct parisc_device *dev)
        return 0;
 }
 
-static struct parisc_driver zalon_driver = {
+static struct parisc_driver zalon_driver __refdata = {
        .name =         "zalon",
        .id_table =     zalon_tbl,
        .probe =        zalon_probe,
-       .remove =       zalon_remove,
+       .remove =       __exit_p(zalon_remove),
 };
 
 static int __init zalon7xx_init(void)