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>
Wed, 4 Oct 2023 18:57:56 +0000 (20:57 +0200)
commitec2926f5f6221b550fbed6912dafd6ef72b29131
tree3df8bf3059afe19eafc5fd103dfe7398df9dab37
parent2ed20dec2a885dd8bea5af104b7bebc4ba5c9e72
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