Skip to contentSkip to conversation

clkdev: remove unnecessary __ref annotations

PATCH New Rasmus Villemoes 1 participant 1 message Mar 23, 2021 Arm/clkdev support

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 clkdev: remove unnecessary __ref annotations

clkdev_alloc and vclkdev_alloc do not call any functions living in .init.text (nor are there comments as to when and why that would be safe). The original annotation dates back to when the code was imported from ARM in 6d803ba736ab, and AFAICT the last reason to have the annotation vanished with ea17c9d868c1 (sh: Use generic clkdev.h header).

---
 drivers/clk/clkdev.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/clk/clkdev.c +2 -2
index 0f2e3fcf0f19..d446c2c697d5 100644
@@ -153,7 +153,7 @@ struct clk_lookup_alloc {
 	char	con_id[MAX_CON_ID];
 };
 
-static struct clk_lookup * __ref
+static struct clk_lookup *
 vclkdev_alloc(struct clk_hw *hw, const char *con_id, const char *dev_fmt,
 	va_list ap)
 {
@@ -190,7 +190,7 @@ vclkdev_create(struct clk_hw *hw, const char *con_id, const char *dev_fmt,
 	return cl;
 }
 
-struct clk_lookup * __ref
+struct clk_lookup *
 clkdev_alloc(struct clk *clk, const char *con_id, const char *dev_fmt, ...)
 {
 	struct clk_lookup *cl;
Signature · 1 line
2.29.2