HID: nvidia-shield: Fix some missing function calls() in the probe error handling...
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Mon, 18 Sep 2023 11:54:31 +0000 (04:54 -0700)
committerJiri Kosina <jkosina@suse.cz>
Thu, 5 Oct 2023 10:50:34 +0000 (12:50 +0200)
commitaa80f391e97a3fa5ca6bd822047950aa0584f6bf
tree0c03a4aaeeb4c1bb5d08e7b5a75346f2a3b8caba
parentb07b6b27a50e3a740c9aa6260ee4bb3ab29515ab
HID: nvidia-shield: Fix some missing function calls() in the probe error handling path

The commit in Fixes updated the error handling path of
thunderstrike_create() and the remove function but not the error handling
path of shield_probe(), should an error occur after a successful
thunderstrike_create() call.

Add the missing calls.

Fixes: 3ab196f88237 ("HID: nvidia-shield: Add battery support for Thunderstrike")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Rahul Rameshbabu <rrameshbabu@nvidia.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-nvidia-shield.c