Skip to content

Commit 4d4d74c

Browse files
committed
Input: samsung-keypad - do not set input device's parent explicitly
The driver uses devm_input_allocate_device() to allocate instances of input device, which sets the parent appropriately. Remove extraneous assignment. Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Link: https://lore.kernel.org/r/20240819045813.2154642-3-dmitry.torokhov@gmail.com Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
1 parent e65efc6 commit 4d4d74c

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

drivers/input/keyboard/samsung-keypad.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,6 @@ static int samsung_keypad_probe(struct platform_device *pdev)
383383

384384
input_dev->name = pdev->name;
385385
input_dev->id.bustype = BUS_HOST;
386-
input_dev->dev.parent = &pdev->dev;
387386

388387
input_dev->open = samsung_keypad_open;
389388
input_dev->close = samsung_keypad_close;

0 commit comments

Comments
 (0)