[PATCH] libata: ata_dev_init_params() fixes
authorAlbert Lee <albertcc@tw.ibm.com>
Mon, 27 Mar 2006 08:39:18 +0000 (16:39 +0800)
committerJeff Garzik <jeff@garzik.org>
Thu, 30 Mar 2006 00:30:28 +0000 (19:30 -0500)
commit00b6f5e9e04b2186a71a5892640bb2d8e09a030e
treef486ef99a0a7e5db563176eda559a8a332297df1
parent17efc5f7237995295cbe008828788d187fea3c88
[PATCH] libata: ata_dev_init_params() fixes

ata_dev_init_params() fixes:
- Get the "heads" and "sectors" parameters from caller instead of implicitly from dev->id[].
- Return AC_ERR_INVALID instead of 0 if an invalid parameter is found

Signed-off-by: Albert Lee <albertcc@tw.ibm.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/scsi/libata-core.c