[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250319123058.452202-6-ravi@prevas.dk>
Date: Wed, 19 Mar 2025 13:30:55 +0100
From: Rasmus Villemoes <ravi@...vas.dk>
To: Colin Foster <colin.foster@...advantage.com>,
Lee Jones <lee@...nel.org>
Cc: linux-kernel@...r.kernel.org,
devicetree@...r.kernel.org,
Felix Blix Everberg <felix.blix@...vas.dk>,
Rasmus Villemoes <ravi@...vas.dk>
Subject: [PATCH 5/8] mfd: ocelot: make ocelot_chip_init() static
Now only called from within ocelot-core.c.
Signed-off-by: Rasmus Villemoes <ravi@...vas.dk>
---
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
Powered by blists - more mailing lists