]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
mmc: bcm2835: Fix type of current clock speed
authorStefan Wahren <wahrenst@gmx.net>
Fri, 25 Oct 2024 10:36:15 +0000 (12:36 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 28 Oct 2024 11:33:36 +0000 (12:33 +0100)
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>
drivers/mmc/host/bcm2835.c

index 349f1c50b0967fa5e8e5364db2c4b946b0271f91..9d619a7c8360e653eaabd68c949b982fbf60fa3c 100644 (file)
@@ -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 */