summaryrefslogtreecommitdiff
path: root/drivers/platform/surface/aggregator/ssh_parser.c
diff options
context:
space:
mode:
authorJavier Carrasco <javier.carrasco.cruz@gmail.com>2024-10-01 23:21:20 +0300
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2024-10-06 17:09:35 +0300
commite980726d89e25eb87dd80803ec75feefede21045 (patch)
treea06daa85d821c24fec87b710a3620b4da6d24a9b /drivers/platform/surface/aggregator/ssh_parser.c
parented59fc90f38a751f699a846bc68a89185fb8325d (diff)
downloadlinux-e980726d89e25eb87dd80803ec75feefede21045.tar.xz
iio: light: veml6030: power off device in probe error paths
Move devm_add_action_or_reset() with a device shut down action to the hardware initialization function to ensure that any error path after powering on the device leads to a power off. Add struct device *dev to the argument list to clarify the device the action is registered against, and use it wherever &client->dev was used. Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com> Link: https://patch.msgid.link/20241001-veml6035-v3-7-d789f6ff147c@gmail.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/platform/surface/aggregator/ssh_parser.c')
0 files changed, 0 insertions, 0 deletions