Message ID | alpine.DEB.2.20.1801030718330.2597@hadrien |
---|---|
State | New |
Headers | show |
Series | regulator: lp8788-ldo: fix odd_ptr_err.cocci warnings | expand |
--- a/drivers/regulator/lp8788-ldo.c +++ b/drivers/regulator/lp8788-ldo.c @@ -507,7 +507,7 @@ static int lp8788_config_ldo_enable_mode enable_id, GPIOD_OUT_HIGH); if (IS_ERR(ldo->ena_gpiod)) - return PTR_ERR(ldo->ena->gpiod); + return PTR_ERR(ldo->ena_gpiod); /* if no GPIO for ldo pin, then set default enable mode */ if (!ldo->ena_gpiod)