[PATCH V3 5/5] staging:iio:magnetometer:ak8975: Fix probe() error-handling

2011-09-01 Thread Stephen Warren
Fix ak8975_probe() to jump to the appropriate exit labels when an error occurs. With the previous code, some cleanup actions were being skipped for some error conditions. Signed-off-by: Stephen Warren swar...@nvidia.com --- drivers/staging/iio/magnetometer/ak8975.c |2 +- 1 files changed, 1

[PATCH V3 5/5] staging:iio:magnetometer:ak8975: Fix probe() error-handling

2011-09-01 Thread Stephen Warren
Fix ak8975_probe() to jump to the appropriate exit labels when an error occurs. With the previous code, some cleanup actions were being skipped for some error conditions. Signed-off-by: Stephen Warren swar...@nvidia.com --- drivers/staging/iio/magnetometer/ak8975.c |2 +- 1 files changed, 1