mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [patch] 2.4.10 drivers/net/irda/smc-ircc.c
@ 2001-09-25 15:29 Keith Owens
  0 siblings, 0 replies; only message in thread
From: Keith Owens @ 2001-09-25 15:29 UTC (permalink / raw)
  To: linux-kernel; +Cc: torvalds, linux-irda

Data should be __initdata, not __init, and cannot be const.

Index: 10.1/drivers/net/irda/smc-ircc.c
--- 10.1/drivers/net/irda/smc-ircc.c Mon, 13 Aug 2001 14:14:10 +1000 kaos (linux-2.4/f/c/23_smc-ircc.c 1.3.1.1.1.1.1.1 644)
+++ 10.9(w)/drivers/net/irda/smc-ircc.c Wed, 26 Sep 2001 01:26:37 +1000 kaos (linux-2.4/f/c/23_smc-ircc.c 1.3.1.1.1.1.1.1 644)
@@ -99,7 +99,7 @@ static int  ircc_pmproc(struct pm_dev *d
 #define	SERx4	8	/* SuperIO Chip supports 115,2 KBaud * 4=460,8 KBaud */
 
 /* These are the currently known SMC SuperIO chipsets */
-static const smc_chip_t __init fdc_chips_flat[]=
+static smc_chip_t __initdata fdc_chips_flat[]=
 {
 	/* Base address 0x3f0 or 0x370 */
 	{ "37C44",	KEY55_1|NoIRDA,		0x00, 0x00 }, /* This chip can not detected */
@@ -113,7 +113,7 @@ static const smc_chip_t __init fdc_chips
 	{ NULL }
 };
 
-static const smc_chip_t __init fdc_chips_paged[]=
+static smc_chip_t __initdata fdc_chips_paged[]=
 {
 	/* Base address 0x3f0 or 0x370 */
 	{ "37B72X",	KEY55_1|SIR|SERx4,	0x4c, 0x00 },
@@ -132,7 +132,7 @@ static const smc_chip_t __init fdc_chips
 	{ NULL }
 };
 
-static const smc_chip_t __init lpc_chips_flat[]=
+static smc_chip_t __initdata lpc_chips_flat[]=
 {
 	/* Base address 0x2E or 0x4E */
 	{ "47N227",	KEY55_1|FIR|SERx4,	0x5a, 0x00 },
@@ -140,7 +140,7 @@ static const smc_chip_t __init lpc_chips
 	{ NULL }
 };
 
-static const smc_chip_t __init lpc_chips_paged[]=
+static smc_chip_t __initdata lpc_chips_paged[]=
 {
 	/* Base address 0x2E or 0x4E */
 	{ "47B27X",	KEY55_1|SIR|SERx4,	0x51, 0x00 },


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-09-25 15:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-09-25 15:29 [patch] 2.4.10 drivers/net/irda/smc-ircc.c Keith Owens

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®