summaryrefslogtreecommitdiffstats
path: root/drivers/mmc
diff options
context:
space:
mode:
authorStefan Wahren <wahrenst@gmx.net>2024-10-25 12:36:15 +0200
committerUlf Hansson <ulf.hansson@linaro.org>2024-10-28 12:33:36 +0100
commit9d3b4e52fd63ee7415bc8d70b0ce4fba0b643bf5 (patch)
treeaff467a1f7445bcd33b4883dffe9e0f8df4ef7c9 /drivers/mmc
parentmmc: Merge branch fixes into next (diff)
downloadlinux-9d3b4e52fd63ee7415bc8d70b0ce4fba0b643bf5.tar.xz
linux-9d3b4e52fd63ee7415bc8d70b0ce4fba0b643bf5.zip
mmc: bcm2835: Fix type of current clock speed
The type of mmc_ios.clock is unsigned int, so the cached value should be of the same type. Signed-off-by: Stefan Wahren <wahrenst@gmx.net> Message-ID: <20241025103621.4780-4-wahrenst@gmx.net> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc')
-rw-r--r--drivers/mmc/host/bcm2835.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/host/bcm2835.c b/drivers/mmc/host/bcm2835.c
index 349f1c50b096..9d619a7c8360 100644
--- a/drivers/mmc/host/bcm2835.c
+++ b/drivers/mmc/host/bcm2835.c
@@ -150,7 +150,7 @@ struct bcm2835_host {
struct platform_device *pdev;
- int clock; /* Current clock speed */
+ unsigned int clock; /* Current clock speed */
unsigned int max_clk; /* Max possible freq */
struct work_struct dma_work;
struct delayed_work timeout_work; /* Timer for timeouts */