diff options
author | Pekka Enberg <penberg@cs.helsinki.fi> | 2010-07-14 06:12:57 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2010-07-28 10:05:27 -0400 |
commit | 48813cf989eb8695fe84df30207fc8ff5f15783c (patch) | |
tree | 031eb09af4f435faa285f863416bece80e9d2193 /drivers/scsi/aic7xxx/aic7xxx_osm_pci.c | |
parent | 660bdddb52843d361e47c30294366ae0deac821b (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_osm_pci.c')
-rw-r--r-- | drivers/scsi/aic7xxx/aic7xxx_osm_pci.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/scsi/aic7xxx/aic7xxx_osm_pci.c b/drivers/scsi/aic7xxx/aic7xxx_osm_pci.c index 78fc70c24e07..ee05e8410754 100644 --- a/drivers/scsi/aic7xxx/aic7xxx_osm_pci.c +++ b/drivers/scsi/aic7xxx/aic7xxx_osm_pci.c | |||
@@ -225,7 +225,7 @@ ahc_linux_pci_dev_probe(struct pci_dev *pdev, const struct pci_device_id *ent) | |||
225 | ahc_get_pci_bus(pci), | 225 | ahc_get_pci_bus(pci), |
226 | ahc_get_pci_slot(pci), | 226 | ahc_get_pci_slot(pci), |
227 | ahc_get_pci_function(pci)); | 227 | ahc_get_pci_function(pci)); |
228 | name = malloc(strlen(buf) + 1, M_DEVBUF, M_NOWAIT); | 228 | name = kmalloc(strlen(buf) + 1, GFP_ATOMIC); |
229 | if (name == NULL) | 229 | if (name == NULL) |
230 | return (-ENOMEM); | 230 | return (-ENOMEM); |
231 | strcpy(name, buf); | 231 | strcpy(name, buf); |
@@ -412,7 +412,7 @@ ahc_pci_map_registers(struct ahc_softc *ahc) | |||
412 | */ | 412 | */ |
413 | if (ahc_pci_test_register_access(ahc) != 0) { | 413 | if (ahc_pci_test_register_access(ahc) != 0) { |
414 | 414 | ||
415 | printf("aic7xxx: PCI Device %d:%d:%d " | 415 | printk("aic7xxx: PCI Device %d:%d:%d " |
416 | "failed memory mapped test. Using PIO.\n", | 416 | "failed memory mapped test. Using PIO.\n", |
417 | ahc_get_pci_bus(ahc->dev_softc), | 417 | ahc_get_pci_bus(ahc->dev_softc), |
418 | ahc_get_pci_slot(ahc->dev_softc), | 418 | ahc_get_pci_slot(ahc->dev_softc), |
@@ -425,7 +425,7 @@ ahc_pci_map_registers(struct ahc_softc *ahc) | |||
425 | } else | 425 | } else |
426 | command |= PCIM_CMD_MEMEN; | 426 | command |= PCIM_CMD_MEMEN; |
427 | } else { | 427 | } else { |
428 | printf("aic7xxx: PCI%d:%d:%d MEM region 0x%llx " | 428 | printk("aic7xxx: PCI%d:%d:%d MEM region 0x%llx " |
429 | "unavailable. Cannot memory map device.\n", | 429 | "unavailable. Cannot memory map device.\n", |
430 | ahc_get_pci_bus(ahc->dev_softc), | 430 | ahc_get_pci_bus(ahc->dev_softc), |
431 | ahc_get_pci_slot(ahc->dev_softc), | 431 | ahc_get_pci_slot(ahc->dev_softc), |
@@ -444,7 +444,7 @@ ahc_pci_map_registers(struct ahc_softc *ahc) | |||
444 | ahc->bsh.ioport = (u_long)base; | 444 | ahc->bsh.ioport = (u_long)base; |
445 | command |= PCIM_CMD_PORTEN; | 445 | command |= PCIM_CMD_PORTEN; |
446 | } else { | 446 | } else { |
447 | printf("aic7xxx: PCI%d:%d:%d IO region 0x%llx[0..255] " | 447 | printk("aic7xxx: PCI%d:%d:%d IO region 0x%llx[0..255] " |
448 | "unavailable. Cannot map device.\n", | 448 | "unavailable. Cannot map device.\n", |
449 | ahc_get_pci_bus(ahc->dev_softc), | 449 | ahc_get_pci_bus(ahc->dev_softc), |
450 | ahc_get_pci_slot(ahc->dev_softc), | 450 | ahc_get_pci_slot(ahc->dev_softc), |