[PATCH 5/8] mfd: ocelot: make ocelot_chip_init() static
From: Rasmus Villemoes
Date: Wed Mar 19 2025 - 08:32:19 EST
Now only called from within ocelot-core.c.
Signed-off-by: Rasmus Villemoes <ravi@xxxxxxxxx>
---
drivers/mfd/ocelot-core.c | 3 +--
drivers/mfd/ocelot.h | 1 -
2 files changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/mfd/ocelot-core.c b/drivers/mfd/ocelot-core.c
index c0ab5492c83f9..c00d30dbfca82 100644
--- a/drivers/mfd/ocelot-core.c
+++ b/drivers/mfd/ocelot-core.c
@@ -98,7 +98,7 @@ static int ocelot_gcb_chip_rst_status(struct ocelot_ddata *ddata)
return val;
}
-int ocelot_chip_reset(struct device *dev)
+static int ocelot_chip_reset(struct device *dev)
{
struct ocelot_ddata *ddata = dev_get_drvdata(dev);
int ret, val;
@@ -124,7 +124,6 @@ int ocelot_chip_reset(struct device *dev)
return readx_poll_timeout(ocelot_gcb_chip_rst_status, ddata, val, !val,
VSC7512_GCB_RST_SLEEP_US, VSC7512_GCB_RST_TIMEOUT_US);
}
-EXPORT_SYMBOL_NS(ocelot_chip_reset, "MFD_OCELOT");
static const struct resource vsc7512_gcb_resource =
DEFINE_RES_REG_NAMED(VSC7512_CHIP_REGS_RES_START,
diff --git a/drivers/mfd/ocelot.h b/drivers/mfd/ocelot.h
index 5aa6589b9038e..f1272a359ef47 100644
--- a/drivers/mfd/ocelot.h
+++ b/drivers/mfd/ocelot.h
@@ -34,7 +34,6 @@ struct ocelot_ddata {
void *dummy_buf;
};
-int ocelot_chip_reset(struct device *dev);
int ocelot_core_init(struct device *dev);
#endif
--
2.49.0