Skip to content

Commit 61226c1

Browse files
committed
platform/x86: x86-android-tablets: Use platform-device as gpio-keys parent
Use the new x86-android-tablets platform-device as gpio-keys parent to make it clear that this gpio-keys device was instantiated by the x86-android-tablets driver. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Acked-by: Linus Walleij <linus.walleij@linaro.org> Link: https://lore.kernel.org/r/20230909141816.58358-8-hdegoede@redhat.com
1 parent 4014ae2 commit 61226c1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • drivers/platform/x86/x86-android-tablets

drivers/platform/x86/x86-android-tablets/core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ static __init int x86_android_tablet_probe(struct platform_device *pdev)
378378
pdata.buttons = buttons;
379379
pdata.nbuttons = dev_info->gpio_button_count;
380380

381-
pdevs[pdev_count] = platform_device_register_data(NULL, "gpio-keys",
381+
pdevs[pdev_count] = platform_device_register_data(&pdev->dev, "gpio-keys",
382382
PLATFORM_DEVID_AUTO,
383383
&pdata, sizeof(pdata));
384384
if (IS_ERR(pdevs[pdev_count])) {

0 commit comments

Comments
 (0)