From 071106ecf68c401173c58808b1cf5f68cc50d390 Mon Sep 17 00:00:00 2001 From: hc <hc@nodka.com> Date: Fri, 05 Jan 2024 08:39:27 +0000 Subject: [PATCH] change wifi driver to cypress --- kernel/drivers/mux/core.c | 7 +------ 1 files changed, 1 insertions(+), 6 deletions(-) diff --git a/kernel/drivers/mux/core.c b/kernel/drivers/mux/core.c index d1271c1..1fb2238 100644 --- a/kernel/drivers/mux/core.c +++ b/kernel/drivers/mux/core.c @@ -405,17 +405,12 @@ } EXPORT_SYMBOL_GPL(mux_control_deselect); -static int of_dev_node_match(struct device *dev, const void *data) -{ - return dev->of_node == data; -} - /* Note this function returns a reference to the mux_chip dev. */ static struct mux_chip *of_find_mux_chip_by_node(struct device_node *np) { struct device *dev; - dev = class_find_device(&mux_class, NULL, np, of_dev_node_match); + dev = class_find_device_by_of_node(&mux_class, np); return dev ? to_mux_chip(dev) : NULL; } -- Gitblit v1.6.2