提交 1dd181ff 编写于 作者: N Neil Armstrong 提交者: Tom Rini

reset: fix bulk API when DM_RESET is disabled

In the commit "reset: Add get/assert/deassert/release for bulk of reset signals"
the disabled reset_release_bulk() and reset_get_bulk() used the wrong
struct clk_bulk instead of struct reset_ctl_bulk.

Fixes: 0c282339 ("reset: Add get/assert/deassert/release for bulk of reset signals")
Reported-by: NJean-Jacques Hiblot <jjhiblot@ti.com>
Signed-off-by: NNeil Armstrong <narmstrong@baylibre.com>
Reviewed-by: NSimon Glass <sjg@chromium.org>
上级 bbac9222
......@@ -243,7 +243,8 @@ static inline int reset_get_by_index(struct udevice *dev, int index,
return -ENOTSUPP;
}
static inline int reset_get_bulk(struct udevice *dev, struct clk_bulk *bulk)
static inline int reset_get_bulk(struct udevice *dev,
struct reset_ctl_bulk *bulk)
{
return -ENOTSUPP;
}
......@@ -284,7 +285,7 @@ static inline int reset_release_all(struct reset_ctl *reset_ctl, int count)
return 0;
}
static inline int reset_release_bulk(struct clk_bulk *bulk)
static inline int reset_release_bulk(struct reset_ctl_bulk *bulk)
{
return 0;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册