pata_imx: cleanup error path
authorSascha Hauer <s.hauer@pengutronix.de>
Thu, 4 Apr 2013 09:25:05 +0000 (11:25 +0200)
committerJeff Garzik <jgarzik@redhat.com>
Thu, 11 Apr 2013 23:37:46 +0000 (19:37 -0400)
- rename free_priv label to 'err' since priv is allocated with devm_*
  and not freed here.
- add missing 'goto err' in case ata_host_activate fails
- add 'ret' variable to return correct error value instead of hardcoded
  -ENOMEM in error case.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>

No differences found