mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-18 10:35:55 +00:00
CLK: Remove forgotten mutex from clk_fixed class.
This commit is contained in:
parent
95891718f5
commit
3ad8c0e5a1
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=296903
@ -42,13 +42,9 @@ __FBSDID("$FreeBSD$");
|
||||
|
||||
#include <dev/extres/clk/clk_fixed.h>
|
||||
|
||||
#define DEVICE_LOCK(_sc) mtx_lock((_sc)->mtx)
|
||||
#define DEVICE_UNLOCK(_sc) mtx_unlock((_sc)->mtx)
|
||||
|
||||
static int clknode_fixed_init(struct clknode *clk, device_t dev);
|
||||
static int clknode_fixed_recalc(struct clknode *clk, uint64_t *freq);
|
||||
struct clknode_fixed_sc {
|
||||
struct mtx *mtx;
|
||||
int fixed_flags;
|
||||
uint64_t freq;
|
||||
uint32_t mult;
|
||||
@ -74,6 +70,7 @@ clknode_fixed_init(struct clknode *clk, device_t dev)
|
||||
clknode_init_parent_idx(clk, 0);
|
||||
return(0);
|
||||
}
|
||||
|
||||
static int
|
||||
clknode_fixed_recalc(struct clknode *clk, uint64_t *freq)
|
||||
{
|
||||
@ -90,8 +87,7 @@ clknode_fixed_recalc(struct clknode *clk, uint64_t *freq)
|
||||
}
|
||||
|
||||
int
|
||||
clknode_fixed_register(struct clkdom *clkdom, struct clk_fixed_def *clkdef,
|
||||
struct mtx *dev_mtx)
|
||||
clknode_fixed_register(struct clkdom *clkdom, struct clk_fixed_def *clkdef)
|
||||
{
|
||||
struct clknode *clk;
|
||||
struct clknode_fixed_sc *sc;
|
||||
@ -103,7 +99,6 @@ clknode_fixed_register(struct clkdom *clkdom, struct clk_fixed_def *clkdef,
|
||||
return (1);
|
||||
|
||||
sc = clknode_get_softc(clk);
|
||||
sc->mtx = dev_mtx;
|
||||
sc->fixed_flags = clkdef->fixed_flags;
|
||||
sc->freq = clkdef->freq;
|
||||
sc->mult = clkdef->mult;
|
||||
|
@ -47,7 +47,6 @@ struct clk_fixed_def {
|
||||
int fixed_flags;
|
||||
};
|
||||
|
||||
int clknode_fixed_register(struct clkdom *clkdom, struct clk_fixed_def *clkdef,
|
||||
struct mtx *dev_mtx);
|
||||
int clknode_fixed_register(struct clkdom *clkdom, struct clk_fixed_def *clkdef);
|
||||
|
||||
#endif /*_DEV_EXTRES_CLK_FIXED_H_*/
|
||||
|
Loading…
Reference in New Issue
Block a user