[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)
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>

No differences found