]> Git Repo - linux.git/blobdiff - drivers/gpio/gpio-em.c
selinux: Remove security_ops extern
[linux.git] / drivers / gpio / gpio-em.c
index 8765bd6f48e12dd177de6a2e42ab2a8df8eecd7c..cde36054c3875dfed67706ee6e1bbbcb0b0179b9 100644 (file)
@@ -212,7 +212,7 @@ static void __em_gio_set(struct gpio_chip *chip, unsigned int reg,
 {
        /* upper 16 bits contains mask and lower 16 actual value */
        em_gio_write(gpio_to_priv(chip), reg,
-                    (1 << (shift + 16)) | (value << shift));
+                    (BIT(shift + 16)) | (value << shift));
 }
 
 static void em_gio_set(struct gpio_chip *chip, unsigned offset, int value)
@@ -284,7 +284,6 @@ static int em_gio_probe(struct platform_device *pdev)
 
        p = devm_kzalloc(&pdev->dev, sizeof(*p), GFP_KERNEL);
        if (!p) {
-               dev_err(&pdev->dev, "failed to allocate driver data\n");
                ret = -ENOMEM;
                goto err0;
        }
This page took 0.03106 seconds and 4 git commands to generate.