linux-mips
[Top] [All Lists]

[PATCH] bcma: gpio: don't cast u32 to unsigned long

To: linux-mips@linux-mips.org, Ralf Baechle <ralf@linux-mips.org>
Subject: [PATCH] bcma: gpio: don't cast u32 to unsigned long
From: Rafał Miłecki <zajec5@gmail.com>
Date: Mon, 13 Jan 2014 20:05:17 +0100
Cc: Hauke Mehrtens <hauke@hauke-m.de>, Rafał Miłecki <zajec5@gmail.com>
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:mime-version:content-type :content-transfer-encoding; bh=mdykYy6kc74YnTELVmNV3OSQn3gTGq/sBgQVkyD02iw=; b=uN1m4cTLospob3dP2B1ofs1fdwlyWBJnUjW1GmxlEaShLoO8Pm/gyON98fw9wyLLjM AGnQ8ARkGss0olGZs6MsCeJKLgYucgL1QIHHOrpL/ZFYawsN6+lE8StRAQKCX2ByDVA9 QCLNyvgogXxsEyn6GJPO1T8Gprw8BfI0rqTHlNrNZ7kahlGs99Gsjk8KfBYqgfNbbP+G asvtOk393ZmmZYxpw3ZlnFr9GJTnoVhv8POICMLXxkTHTLdeuJCtqLdbWeT6EXtcl9xD EUjHHtspMiicQByV/fyx6Vzg1EMycQEG1bvcYY1zipQkFvHZvHfAXMtlpihhI7vdSJyM f/aA==
List-archive: <http://www.linux-mips.org/archives/linux-mips/>
List-help: <mailto:ecartis@linux-mips.org?Subject=help>
List-id: linux-mips <linux-mips.eddie.linux-mips.org>
List-owner: <mailto:ralf@linux-mips.org>
List-post: <mailto:linux-mips@linux-mips.org>
List-software: Ecartis version 1.0.0
List-subscribe: <mailto:ecartis@linux-mips.org?subject=subscribe%20linux-mips>
List-unsubscribe: <mailto:ecartis@linux-mips.org?subject=unsubscribe%20linux-mips>
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
---
 drivers/bcma/driver_gpio.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/bcma/driver_gpio.c b/drivers/bcma/driver_gpio.c
index c2728a0..69c82e2 100644
--- a/drivers/bcma/driver_gpio.c
+++ b/drivers/bcma/driver_gpio.c
@@ -117,13 +117,13 @@ static irqreturn_t bcma_gpio_irq_handler(int irq, void 
*dev_id)
        u32 val = bcma_cc_read32(cc, BCMA_CC_GPIOIN);
        u32 mask = bcma_cc_read32(cc, BCMA_CC_GPIOIRQ);
        u32 pol = bcma_cc_read32(cc, BCMA_CC_GPIOPOL);
-       u32 irqs = (val ^ pol) & mask;
+       unsigned long irqs = (val ^ pol) & mask;
        int gpio;
 
        if (!irqs)
                return IRQ_NONE;
 
-       for_each_set_bit(gpio, (unsigned long *)&irqs, cc->gpio.ngpio)
+       for_each_set_bit(gpio, &irqs, cc->gpio.ngpio)
                generic_handle_irq(bcma_gpio_to_irq(&cc->gpio, gpio));
        bcma_chipco_gpio_polarity(cc, irqs, val & irqs);
 
-- 
1.7.10.4


<Prev in Thread] Current Thread [Next in Thread>
  • [PATCH] bcma: gpio: don't cast u32 to unsigned long, Rafał Miłecki <=