Skip to content

Commit 0b919a3

Browse files
lategoodbyebebarino
authored andcommitted
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: 41691b8 ("clk: bcm2835: Add support for programming the audio domain clocks") Signed-off-by: Stefan Wahren <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Ivan T. Ivanov <[email protected]> Reviewed-by: Florian Fainelli <[email protected]> Signed-off-by: Stephen Boyd <[email protected]>
1 parent f690a4d commit 0b919a3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/clk/bcm/clk-bcm2835.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -969,9 +969,9 @@ static u32 bcm2835_clock_choose_div(struct clk_hw *hw,
969969
return div;
970970
}
971971

972-
static long bcm2835_clock_rate_from_divisor(struct bcm2835_clock *clock,
973-
unsigned long parent_rate,
974-
u32 div)
972+
static unsigned long bcm2835_clock_rate_from_divisor(struct bcm2835_clock *clock,
973+
unsigned long parent_rate,
974+
u32 div)
975975
{
976976
const struct bcm2835_clock_data *data = clock->data;
977977
u64 temp;

0 commit comments

Comments
 (0)