From: Stefan Wahren Date: Fri, 25 Oct 2024 10:36:15 +0000 (+0200) Subject: mmc: bcm2835: Fix type of current clock speed X-Git-Tag: v6.13-rc1~153^2~17 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9d3b4e52fd63ee7415bc8d70b0ce4fba0b643bf5;p=thirdparty%2Fkernel%2Flinux.git 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 Message-ID: <20241025103621.4780-4-wahrenst@gmx.net> Signed-off-by: Ulf Hansson --- diff --git a/drivers/mmc/host/bcm2835.c b/drivers/mmc/host/bcm2835.c index 349f1c50b0967..9d619a7c8360e 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 */