Skip to content

Commit

Permalink
ARM: tegra: Surface RT: Fix powerdown_gpio being optional in battery …
Browse files Browse the repository at this point in the history
…driver

Signed-off-by: Leander Wollersberger <leander.knampf@gmx.at>
  • Loading branch information
LeanderGlanda committed Aug 3, 2021
1 parent 0b2f4dd commit 5cbc083
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/power/supply/surface-rt-battery.c
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ static int srt_battery_probe(struct i2c_client *client,
srt_battery->client = client;
srt_battery->dev = dev;

srt_battery->powerdown_gpio = devm_gpiod_get_optional(srt_battery->dev, "powerdown", GPIOD_OUT_LOW);
srt_battery->powerdown_gpio = devm_gpiod_get(srt_battery->dev, "powerdown", GPIOD_OUT_LOW);
if (IS_ERR(srt_battery->powerdown_gpio)) {
ret = PTR_ERR(srt_battery->powerdown_gpio);
dev_err(srt_battery->dev, "Failed to get powerdown");
Expand Down

0 comments on commit 5cbc083

Please sign in to comment.