SCSI: eata: fix the data buffer accessors conversion regression
commit1db10cc73612b0f2f282969d4ad84cd60bc1a60e
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Mon, 22 Dec 2008 19:01:35 +0000 (23 04:01 +0900)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sun, 18 Jan 2009 18:35:28 +0000 (18 10:35 -0800)
tree6238bf0aa1302493ca4fd3c264bf5aab21179894
parent653ec0e6c09c77f54abe19e0a9e22854cd53ad30
SCSI: eata: fix the data buffer accessors conversion regression

commit 20c09df7eb9c92a40e0ecf654b6e8f14c8583b9e upstream.

This fixes the regression introduced by the commit
58e2a02eb18393e76a469580fedf7caec190eb5e (eata: convert to use the
data buffer accessors), reported:

http://marc.info/?t=122987621300006&r=1&w=2

- fix DMA_NONE handling in map_dma()

- this driver can't use scsi_dma_map since host->shost_gendev.parent
is not set properly (it uses scsi_register).

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Reported-by: Arthur Marsh <arthur.marsh@internode.on.net>
Tested-by: Arthur Marsh <arthur.marsh@internode.on.net>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/scsi/eata.c