diff --git a/drivers/tty/serdev/core.c b/drivers/tty/serdev/core.c index 4fa59314640a..f513107b9ea0 100644 --- a/drivers/tty/serdev/core.c +++ b/drivers/tty/serdev/core.c @@ -56,7 +56,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, drv)) + dev->parent->parent->bus->match(dev->parent->parent, drv)) return 1; return 0; @@ -73,7 +73,7 @@ static int serdev_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, env); + rc = dev->parent->parent->bus->uevent(dev->parent->parent, env); return rc; }