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

parisc/sticore: Fix section mismatches

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

+6 -5
+6 -5
drivers/video/console/sticore.c
··· 281 281 static char default_sti_path[21] __read_mostly; 282 282 283 283 #ifndef MODULE 284 - static int sti_setup(char *str) 284 + static int __init sti_setup(char *str) 285 285 { 286 286 if (str) 287 287 strlcpy (default_sti_path, str, sizeof (default_sti_path)); ··· 941 941 * in the additional address field addr[1] while on 942 942 * older Systems the PDC stores it in page0->proc_sti 943 943 */ 944 - static int sticore_pa_init(struct parisc_device *dev) 944 + static int __init sticore_pa_init(struct parisc_device *dev) 945 945 { 946 946 char pa_path[21]; 947 947 struct sti_struct *sti = NULL; ··· 1009 1009 } 1010 1010 1011 1011 1012 - static void sticore_pci_remove(struct pci_dev *pd) 1012 + static void __exit sticore_pci_remove(struct pci_dev *pd) 1013 1013 { 1014 1014 BUG(); 1015 1015 } ··· 1029 1029 .name = "sti", 1030 1030 .id_table = sti_pci_tbl, 1031 1031 .probe = sticore_pci_init, 1032 - .remove = sticore_pci_remove, 1032 + .remove = __exit_p(sticore_pci_remove), 1033 1033 }; 1034 1034 1035 1035 static struct parisc_device_id sti_pa_tbl[] = { ··· 1037 1037 { HPHW_FIO, HVERSION_REV_ANY_ID, HVERSION_ANY_ID, 0x00085 }, 1038 1038 { 0, } 1039 1039 }; 1040 + MODULE_DEVICE_TABLE(parisc, sti_pa_tbl); 1040 1041 1041 - static struct parisc_driver pa_sti_driver = { 1042 + static struct parisc_driver pa_sti_driver __refdata = { 1042 1043 .name = "sti", 1043 1044 .id_table = sti_pa_tbl, 1044 1045 .probe = sticore_pa_init,