Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

parisc/scsi/zalon: Fix section mismatches

Signed-off-by: Helge Deller <deller@gmx.de>

+4 -4
+4 -4
drivers/scsi/zalon.c
··· 160 160 return error; 161 161 } 162 162 163 - static struct parisc_device_id zalon_tbl[] = { 163 + static const struct parisc_device_id zalon_tbl[] __initconst = { 164 164 { HPHW_A_DMA, HVERSION_REV_ANY_ID, HVERSION_ANY_ID, 0x00089 }, 165 165 { 0, } 166 166 }; 167 167 168 168 MODULE_DEVICE_TABLE(parisc, zalon_tbl); 169 169 170 - static int zalon_remove(struct parisc_device *dev) 170 + static int __exit zalon_remove(struct parisc_device *dev) 171 171 { 172 172 struct Scsi_Host *host = dev_get_drvdata(&dev->dev); 173 173 ··· 178 178 return 0; 179 179 } 180 180 181 - static struct parisc_driver zalon_driver = { 181 + static struct parisc_driver zalon_driver __refdata = { 182 182 .name = "zalon", 183 183 .id_table = zalon_tbl, 184 184 .probe = zalon_probe, 185 - .remove = zalon_remove, 185 + .remove = __exit_p(zalon_remove), 186 186 }; 187 187 188 188 static int __init zalon7xx_init(void)