[PATCH linux dev-5.4] peci: fix a build warning
Jae Hyun Yoo
jae.hyun.yoo at linux.intel.com
Sat Dec 21 06:43:29 AEDT 2019
This commit fixes below build warning when CONFIG_OF_DYNAMIC is
enabled:
expected ‘int (*)(struct device *, const void *)’ but argument is of
type ‘int (*)(struct device *, void *)’
Signed-off-by: Jae Hyun Yoo <jae.hyun.yoo at linux.intel.com>
---
drivers/peci/peci-core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/peci/peci-core.c b/drivers/peci/peci-core.c
index 61a2a59a9fe4..9aedb74710e6 100644
--- a/drivers/peci/peci-core.c
+++ b/drivers/peci/peci-core.c
@@ -1703,7 +1703,7 @@ static void peci_of_register_devices(struct peci_adapter *adapter) { }
#endif /* CONFIG_OF */
#if IS_ENABLED(CONFIG_OF_DYNAMIC)
-static int peci_of_match_node(struct device *dev, void *data)
+static int peci_of_match_node(struct device *dev, const void *data)
{
return dev->of_node == data;
}
--
2.17.1
More information about the openbmc
mailing list