From 84503f5dd67e2cc935ecad2da547411da8397ae9 Mon Sep 17 00:00:00 2001 From: Alistair Delva Date: Thu, 28 Oct 2021 09:48:00 -0700 Subject: [PATCH] Revert "ANDROID: serdev: Fix platform device support" This reverts commit 9b460a068c2b441d8a8dfb04740004b8b747f10f. The customizations to GNSS are no longer requried as we moved our solution to using virtio-console instead. Change-Id: I4bdfffa6420cfbb6c4d69d4123b47e80f7b0d168 Signed-off-by: Alistair Delva --- drivers/tty/serdev/core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/tty/serdev/core.c b/drivers/tty/serdev/core.c index 4b55bb00d957..89b359b39893 100644 --- a/drivers/tty/serdev/core.c +++ b/drivers/tty/serdev/core.c @@ -66,7 +66,7 @@ static int serdev_device_uevent(struct device *dev, struct kobj_uevent_env *env) return rc; if (dev->parent->parent->bus == &platform_bus_type) - rc = dev->parent->parent->bus->uevent(dev->parent->parent, env); + rc = dev->parent->parent->bus->uevent(dev, env); return rc; } @@ -111,7 +111,7 @@ static int serdev_device_match(struct device *dev, struct device_driver *drv) return 1; if (dev->parent->parent->bus == &platform_bus_type && - dev->parent->parent->bus->match(dev->parent->parent, drv)) + dev->parent->parent->bus->match(dev, drv)) return 1; return 0;