Skip to content

Commit 6f982d5

Browse files
krzkchanwoochoi
authored andcommitted
extcon: fsa9480: Fix wakeup source leaks on device unbind
Device can be unbound, so driver must also release memory for the wakeup source. Link: https://lore.kernel.org/lkml/[email protected]/ Reviewed-by: Dmitry Baryshkov <[email protected]> Signed-off-by: Krzysztof Kozlowski <[email protected]> Signed-off-by: Chanwoo Choi <[email protected]>
1 parent 93ccf3f commit 6f982d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/extcon/extcon-fsa9480.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ static int fsa9480_probe(struct i2c_client *client)
317317
return ret;
318318
}
319319

320-
device_init_wakeup(info->dev, true);
320+
devm_device_init_wakeup(info->dev);
321321
fsa9480_detect_dev(info);
322322

323323
return 0;

0 commit comments

Comments
 (0)