drivers: staging: vme: Deleted extra bracking
authorEgor Uleyskiy <egor.ulieiskii@gmail.com>
Sun, 22 Nov 2015 09:27:55 +0000 (11:27 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 24 Nov 2015 23:30:50 +0000 (15:30 -0800)
* Deleted extra bracking of VME_* constants
* Deleted extra bracking of address operator

Signed-off-by: Egor Uleyskiy <egor.ulieiskii@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vme/devices/vme_pio2_core.c
drivers/staging/vme/devices/vme_pio2_gpio.c

index a30282a57b6bc8d4f1feee2c6b4eb80b4455272d..296551f9499b5543c510ea09291550bec1d4d673 100644 (file)
@@ -289,7 +289,7 @@ static int pio2_probe(struct vme_dev *vdev)
        }
 
        retval = vme_master_set(card->window, 1, card->base, 0x10000, VME_A24,
-                               (VME_SCT | VME_USER | VME_DATA), VME_D16);
+                               VME_SCT | VME_USER | VME_DATA, VME_D16);
        if (retval) {
                dev_err(&card->vdev->dev,
                        "Unable to configure VME master resource\n");
index e09f6bb881b6f2340c847be36963677dabcdb76e..65fdb562e9034ff893266c68909e3d532bf31e50 100644 (file)
@@ -205,7 +205,7 @@ int pio2_gpio_init(struct pio2_card *card)
        card->gc.set = pio2_gpio_set;
 
        /* This function adds a memory mapped GPIO chip */
-       retval = gpiochip_add(&(card->gc));
+       retval = gpiochip_add(&card->gc);
        if (retval) {
                dev_err(&card->vdev->dev, "Unable to register GPIO\n");
                kfree(card->gc.label);
@@ -218,7 +218,7 @@ void pio2_gpio_exit(struct pio2_card *card)
 {
        const char *label = card->gc.label;
 
-       gpiochip_remove(&(card->gc));
+       gpiochip_remove(&card->gc);
        kfree(label);
 }