power: supply: bq24190_charger: Uniform pm_runtime_get() failure handling
authorLiam Breck <kernel@networkimprov.net>
Tue, 11 Apr 2017 11:59:56 +0000 (04:59 -0700)
committerSebastian Reichel <sre@kernel.org>
Thu, 13 Apr 2017 23:41:35 +0000 (01:41 +0200)
commite3ebc381a966f7fb41b13c2823ff96f9d6d7a377
tree47976f7852ecd77117274b1a5b64bbfef3b47b42
parent03add17fe338af82a28b41bda6afeb3b25c0a323
power: supply: bq24190_charger: Uniform pm_runtime_get() failure handling

On pm_runtime_get() failure, always emit an error message.
Prevent unbalanced pm_runtime_get by calling:
  pm_runtime_put_noidle() in irq handler
  pm_runtime_put_sync() on any probe() failure
Rename probe() out labels instead of renumbering them.

Fixes: 13d6fa8447fa ("power: bq24190_charger: Use PM runtime autosuspend")
Signed-off-by: Liam Breck <kernel@networkimprov.net>
Acked-by: Tony Lindgren <tony@atomide.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
drivers/power/supply/bq24190_charger.c