Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 249067
b: refs/heads/master
c: 389fe98
h: refs/heads/master
i:
  249065: fef21f3
  249063: 045cbad
v: v3
  • Loading branch information
Alexander Beregalov authored and Greg Kroah-Hartman committed Apr 20, 2011
1 parent 6826e06 commit 5e94780
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 12 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f7468e2995dbd914817c780941750f0ac668ac50
refs/heads/master: 389fe985f27b5334110639146016bb6dd273c3f6
8 changes: 4 additions & 4 deletions trunk/drivers/staging/rts_pstor/ms.c
Original file line number Diff line number Diff line change
Expand Up @@ -863,7 +863,7 @@ static int ms_read_attribute_info(struct rtsx_chip *chip)
TRACE_RET(chip, STATUS_FAIL);
}

buf = (u8 *)rtsx_alloc_dma_buf(chip, 64 * 512, GFP_KERNEL);
buf = kmalloc(64 * 512, GFP_KERNEL);
if (buf == NULL) {
TRACE_RET(chip, STATUS_ERROR);
}
Expand Down Expand Up @@ -3783,7 +3783,7 @@ int mg_get_local_EKB(struct scsi_cmnd *srb, struct rtsx_chip *chip)
TRACE_RET(chip, STATUS_FAIL);
}

buf = (u8 *)rtsx_alloc_dma_buf(chip, 1540, GFP_KERNEL);
buf = kmalloc(1540, GFP_KERNEL);
if (!buf) {
TRACE_RET(chip, STATUS_ERROR);
}
Expand Down Expand Up @@ -4021,7 +4021,7 @@ int mg_get_ICV(struct scsi_cmnd *srb, struct rtsx_chip *chip)
TRACE_RET(chip, STATUS_FAIL);
}

buf = (u8 *)rtsx_alloc_dma_buf(chip, 1028, GFP_KERNEL);
buf = kmalloc(1028, GFP_KERNEL);
if (!buf) {
TRACE_RET(chip, STATUS_ERROR);
}
Expand Down Expand Up @@ -4080,7 +4080,7 @@ int mg_set_ICV(struct scsi_cmnd *srb, struct rtsx_chip *chip)
TRACE_RET(chip, STATUS_FAIL);
}

buf = (u8 *)rtsx_alloc_dma_buf(chip, 1028, GFP_KERNEL);
buf = kmalloc(1028, GFP_KERNEL);
if (!buf) {
TRACE_RET(chip, STATUS_ERROR);
}
Expand Down
2 changes: 0 additions & 2 deletions trunk/drivers/staging/rts_pstor/rtsx.h
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,6 @@ do { \

#define SCSI_LUN(srb) ((srb)->device->lun)

#define rtsx_alloc_dma_buf(chip, size, flag) kmalloc((size), (flag))

typedef unsigned long DELAY_PARA_T;

struct rtsx_chip;
Expand Down
8 changes: 4 additions & 4 deletions trunk/drivers/staging/rts_pstor/spi.c
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ int spi_read_flash(struct scsi_cmnd *srb, struct rtsx_chip *chip)
TRACE_RET(chip, STATUS_FAIL);
}

buf = (u8 *)rtsx_alloc_dma_buf(chip, SF_PAGE_LEN, GFP_KERNEL);
buf = kmalloc(SF_PAGE_LEN, GFP_KERNEL);
if (buf == NULL)
TRACE_RET(chip, STATUS_ERROR);

Expand Down Expand Up @@ -584,7 +584,7 @@ int spi_write_flash(struct scsi_cmnd *srb, struct rtsx_chip *chip)
}

if (program_mode == BYTE_PROGRAM) {
buf = rtsx_alloc_dma_buf(chip, 4, GFP_KERNEL);
buf = kmalloc(4, GFP_KERNEL);
if (!buf)
TRACE_RET(chip, STATUS_ERROR);

Expand Down Expand Up @@ -630,7 +630,7 @@ int spi_write_flash(struct scsi_cmnd *srb, struct rtsx_chip *chip)
if (retval != STATUS_SUCCESS)
TRACE_RET(chip, STATUS_FAIL);

buf = rtsx_alloc_dma_buf(chip, 4, GFP_KERNEL);
buf = kmalloc(4, GFP_KERNEL);
if (!buf)
TRACE_RET(chip, STATUS_ERROR);

Expand Down Expand Up @@ -675,7 +675,7 @@ int spi_write_flash(struct scsi_cmnd *srb, struct rtsx_chip *chip)
if (retval != STATUS_SUCCESS)
TRACE_RET(chip, STATUS_FAIL);
} else if (program_mode == PAGE_PROGRAM) {
buf = rtsx_alloc_dma_buf(chip, SF_PAGE_LEN, GFP_KERNEL);
buf = kmalloc(SF_PAGE_LEN, GFP_KERNEL);
if (!buf)
TRACE_RET(chip, STATUS_NOMEM);

Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/staging/rts_pstor/xd.c
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ static void xd_clear_dma_buffer(struct rtsx_chip *chip)

RTSX_DEBUGP("xD ECC error, dummy write!\n");

buf = (u8 *)rtsx_alloc_dma_buf(chip, 512, GFP_KERNEL);
buf = kmalloc(512, GFP_KERNEL);
if (!buf)
return;

Expand Down

0 comments on commit 5e94780

Please sign in to comment.