
8 Oct
2024
8 Oct
'24
3:49 p.m.
On 10/8/24 6:58 AM, Venkatesh Yadav Abbarapu wrote:
[...]
@@ -38,6 +75,12 @@ static int usb_onboard_hub_remove(struct udevice *dev) struct onboard_hub *hub = dev_get_priv(dev); int ret;
- if (hub->reset_gpio) {
struct gpio_desc *hub_reset_gpio = hub->reset_gpio;
dm_gpio_free(hub_reset_gpio->dev, hub_reset_gpio);
dm_gpio_free(hub_reset_gpio->dev, hub->reset_gpio); , no need for the extra local variable.
[...]