Skip to content

Commit 5617c91

Browse files
committed
clkdev: remove unused clkdev_alloc() interfaces
The last user of clkdev_alloc() and clkdev_hw_alloc() was removed last year, so everything now calls clkdev_create() and clkdev_hw_create() instead. Removing the unused functions lets the compiler optimize the remaining ones slightly better. Fixes: e500667 ("clk: versatile: Drop the legacy IM-PD1 clock code") Reviewed-by: Stephen Boyd <[email protected]> Signed-off-by: Arnd Bergmann <[email protected]>
1 parent 2f4574d commit 5617c91

File tree

2 files changed

+0
-33
lines changed

2 files changed

+0
-33
lines changed

drivers/clk/clkdev.c

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -190,34 +190,6 @@ vclkdev_create(struct clk_hw *hw, const char *con_id, const char *dev_fmt,
190190
return cl;
191191
}
192192

193-
struct clk_lookup * __ref
194-
clkdev_alloc(struct clk *clk, const char *con_id, const char *dev_fmt, ...)
195-
{
196-
struct clk_lookup *cl;
197-
va_list ap;
198-
199-
va_start(ap, dev_fmt);
200-
cl = vclkdev_alloc(__clk_get_hw(clk), con_id, dev_fmt, ap);
201-
va_end(ap);
202-
203-
return cl;
204-
}
205-
EXPORT_SYMBOL(clkdev_alloc);
206-
207-
struct clk_lookup *
208-
clkdev_hw_alloc(struct clk_hw *hw, const char *con_id, const char *dev_fmt, ...)
209-
{
210-
struct clk_lookup *cl;
211-
va_list ap;
212-
213-
va_start(ap, dev_fmt);
214-
cl = vclkdev_alloc(hw, con_id, dev_fmt, ap);
215-
va_end(ap);
216-
217-
return cl;
218-
}
219-
EXPORT_SYMBOL(clkdev_hw_alloc);
220-
221193
/**
222194
* clkdev_create - allocate and add a clkdev lookup structure
223195
* @clk: struct clk to associate with all clk_lookups

include/linux/clkdev.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,6 @@ struct clk_lookup {
3030
.clk = c, \
3131
}
3232

33-
struct clk_lookup *clkdev_alloc(struct clk *clk, const char *con_id,
34-
const char *dev_fmt, ...) __printf(3, 4);
35-
struct clk_lookup *clkdev_hw_alloc(struct clk_hw *hw, const char *con_id,
36-
const char *dev_fmt, ...) __printf(3, 4);
37-
3833
void clkdev_add(struct clk_lookup *cl);
3934
void clkdev_drop(struct clk_lookup *cl);
4035

0 commit comments

Comments
 (0)