Commit 6632b9bc authored by Stefan Wahren's avatar Stefan Wahren Committed by Jialin Zhang
Browse files

clk: bcm2835: fix bcm2835_clock_rate_from_divisor declaration

stable inclusion
from stable-v5.10.150
commit 9b65fd651334675d17bf681c51602b3739437315
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I6D0XA

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=9b65fd651334675d17bf681c51602b3739437315



--------------------------------

[ Upstream commit 0b919a37 ]

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.com


Reviewed-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>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarJialin Zhang <zhangjialin11@huawei.com>
parent 72e67cf6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment