aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/aic7xxx/aic7xxx_93cx6.c
diff options
context:
space:
mode:
authorPekka Enberg <penberg@cs.helsinki.fi>2010-07-14 06:12:57 -0400
committerJames Bottomley <James.Bottomley@suse.de>2010-07-28 10:05:27 -0400
commit48813cf989eb8695fe84df30207fc8ff5f15783c (patch)
tree031eb09af4f435faa285f863416bece80e9d2193 /drivers/scsi/aic7xxx/aic7xxx_93cx6.c
parent660bdddb52843d361e47c30294366ae0deac821b (diff)
[SCSI] aic7xxx: Remove OS utility wrappers
This patch removes malloc(), free(), and printf() wrappers from the aic7xxx SCSI driver. I didn't use pr_debug for printf because of some 'clever' uses of printf don't compile with the pr_debug. I didn't fix the overeager uses of GFP_ATOMIC either because I wanted to keep this patch as simple as possible. [jejb:fixed up checkpatch errors and fixed up missed conversion] Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi> Acked-by: Hannes Reinecke <hare@suse.de> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/aic7xxx/aic7xxx_93cx6.c')
-rw-r--r--drivers/scsi/aic7xxx/aic7xxx_93cx6.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/scsi/aic7xxx/aic7xxx_93cx6.c b/drivers/scsi/aic7xxx/aic7xxx_93cx6.c
index dd11999b77b6..9e85a7ef9c8e 100644
--- a/drivers/scsi/aic7xxx/aic7xxx_93cx6.c
+++ b/drivers/scsi/aic7xxx/aic7xxx_93cx6.c
@@ -207,14 +207,14 @@ ahc_read_seeprom(struct seeprom_descriptor *sd, uint16_t *buf,
207 reset_seeprom(sd); 207 reset_seeprom(sd);
208 } 208 }
209#ifdef AHC_DUMP_EEPROM 209#ifdef AHC_DUMP_EEPROM
210 printf("\nSerial EEPROM:\n\t"); 210 printk("\nSerial EEPROM:\n\t");
211 for (k = 0; k < count; k = k + 1) { 211 for (k = 0; k < count; k = k + 1) {
212 if (((k % 8) == 0) && (k != 0)) { 212 if (((k % 8) == 0) && (k != 0)) {
213 printf ("\n\t"); 213 printk(KERN_CONT "\n\t");
214 } 214 }
215 printf (" 0x%x", buf[k]); 215 printk(KERN_CONT " 0x%x", buf[k]);
216 } 216 }
217 printf ("\n"); 217 printk(KERN_CONT "\n");
218#endif 218#endif
219 return (1); 219 return (1);
220} 220}
@@ -240,7 +240,7 @@ ahc_write_seeprom(struct seeprom_descriptor *sd, uint16_t *buf,
240 ewen = &seeprom_long_ewen; 240 ewen = &seeprom_long_ewen;
241 ewds = &seeprom_long_ewds; 241 ewds = &seeprom_long_ewds;
242 } else { 242 } else {
243 printf("ahc_write_seeprom: unsupported seeprom type %d\n", 243 printk("ahc_write_seeprom: unsupported seeprom type %d\n",
244 sd->sd_chip); 244 sd->sd_chip);
245 return (0); 245 return (0);
246 } 246 }