]> git.itanic.dy.fi Git - linux-stable/commit
platform/x86: x86-android-tablets: Fix serdev instantiation no longer working
authorHans de Goede <hdegoede@redhat.com>
Fri, 16 Feb 2024 20:17:20 +0000 (21:17 +0100)
committerHans de Goede <hdegoede@redhat.com>
Tue, 20 Feb 2024 13:35:35 +0000 (14:35 +0100)
commit812a79b52b92345d777b6377fa538747d366b6ce
tree15ff63240df71805973aef5100ee4bfd55d95a95
parentdc5afd720f84de3c1f5d700eb0b858006a2dc468
platform/x86: x86-android-tablets: Fix serdev instantiation no longer working

After commit b286f4e87e32 ("serial: core: Move tty and serdev to be
children of serial core port device") x86_instantiate_serdev() no longer
works due to the serdev-controller-device moving in the device hierarchy
from (e.g.) /sys/devices/pci0000:00/8086228A:00/serial0 to
/sys/devices/pci0000:00/8086228A:00/8086228A:00:0/8086228A:00:0.0/serial0

Use the new get_serdev_controller() helper function to fix this.

Fixes: b286f4e87e32 ("serial: core: Move tty and serdev to be children of serial core port device")
Cc: Tony Lindgren <tony@atomide.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20240216201721.239791-4-hdegoede@redhat.com
drivers/platform/x86/x86-android-tablets/core.c