Skip to contentSkip to conversation

NCR_Q720: fix init/exit section usage

PATCH New Randy.Dunlap 1 participant 1 message Jan 7, 2005 SCSI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 NCR_Q720: fix init/exit section usage

Fix init & exit section usage, stemming from this diagnostic (from reference_discarded.pl == make buildcheck):
Error: ./drivers/scsi/NCR_Q720.o .data refers to 0000010c R_386_32 .exit.text

diffstat:=

 drivers/scsi/NCR_Q720.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
drivers/scsi/NCR_Q720.c renamed from drivers/scsi/NCR_Q720.c~ncr_q720_devexit +5 -5
diff -Naurp ./drivers/scsi/NCR_Q720.c~ncr_q720_devexit ./drivers/scsi/NCR_Q720.c
@@ -22,7 +22,7 @@
 
 #include "NCR_Q720.h"
 
-static struct ncr_chip q720_chip __initdata = {
+static struct ncr_chip q720_chip = {
 	.revision_id =	0x0f,
 	.burst_max =	3,
 	.offset_max =	8,
@@ -73,7 +73,7 @@ NCR_Q720_intr(int irq, void *data, struc
 	return IRQ_HANDLED;
 }
 
-static int __init
+static int __devinit
 NCR_Q720_probe_one(struct NCR_Q720_private *p, int siop,
 		int irq, int slot, __u32 paddr, void __iomem *vaddr)
 {
@@ -134,7 +134,7 @@ NCR_Q720_probe_one(struct NCR_Q720_priva
  * essentially connectecd to the MCA bus independently, it is easier
  * to set them up as two separate host adapters, rather than one
  * adapter with two channels */
-static int __init
+static int __devinit
 NCR_Q720_probe(struct device *dev)
 {
 	struct NCR_Q720_private *p;
@@ -319,14 +319,14 @@ NCR_Q720_probe(struct device *dev)
 	return -ENODEV;
 }
 
-static void __exit
+static void __devexit
 NCR_Q720_remove_one(struct Scsi_Host *host)
 {
 	scsi_remove_host(host);
 	ncr53c8xx_release(host);
 }
 
-static int __exit
+static int __devexit
 NCR_Q720_remove(struct device *dev)
 {
 	struct NCR_Q720_private *p = dev_get_drvdata(dev);

---