Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

reset: gpio: remove unneeded auxiliary_set_drvdata()

There's no user of the driver data so don't needlessly assign it.

Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>

authored by

Bartosz Golaszewski and committed by
Philipp Zabel
1acd4663 ad9d28e6

-2
-2
drivers/reset/reset-gpio.c
··· 62 62 if (!priv) 63 63 return -ENOMEM; 64 64 65 - auxiliary_set_drvdata(adev, &priv->rc); 66 - 67 65 priv->reset = devm_gpiod_get(dev, "reset", GPIOD_OUT_HIGH); 68 66 if (IS_ERR(priv->reset)) 69 67 return dev_err_probe(dev, PTR_ERR(priv->reset),