Commit 0b919a37 authored by Stefan Wahren's avatar Stefan Wahren Committed by Stephen Boyd

clk: bcm2835: fix bcm2835_clock_rate_from_divisor declaration

The return value of bcm2835_clock_rate_from_divisor is always unsigned
and also all caller expect this. So fix the declaration accordingly.

Fixes: 41691b88 ("clk: bcm2835: Add support for programming the audio domain clocks")
Signed-off-by: default avatarStefan Wahren <stefan.wahren@i2se.com>
Link: https://lore.kernel.org/r/20220904141037.38816-1-stefan.wahren@i2se.comReviewed-by: default avatarIvan T. Ivanov <iivanov@suse.de>
Reviewed-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
Signed-off-by: default avatarStephen Boyd <sboyd@kernel.org>
parent f690a4d7
...@@ -969,9 +969,9 @@ static u32 bcm2835_clock_choose_div(struct clk_hw *hw, ...@@ -969,9 +969,9 @@ static u32 bcm2835_clock_choose_div(struct clk_hw *hw,
return div; return div;
} }
static long bcm2835_clock_rate_from_divisor(struct bcm2835_clock *clock, static unsigned long bcm2835_clock_rate_from_divisor(struct bcm2835_clock *clock,
unsigned long parent_rate, unsigned long parent_rate,
u32 div) u32 div)
{ {
const struct bcm2835_clock_data *data = clock->data; const struct bcm2835_clock_data *data = clock->data;
u64 temp; u64 temp;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment