ar71xx: ag71xx: check PHY IDs before accessing the switch registers
[openwrt.git] / target / linux / ar71xx / files / drivers / gpio / nxp_74hc153.c
index b4f1662..a5fec5c 100644 (file)
@@ -11,6 +11,7 @@
 #include <linux/module.h>
 #include <linux/init.h>
 #include <linux/gpio.h>
+#include <linux/slab.h>
 #include <linux/platform_device.h>
 #include <linux/nxp_74hc153.h>
 
@@ -178,15 +179,15 @@ static int __devinit nxp_74hc153_probe(struct platform_device *pdev)
        platform_set_drvdata(pdev, nxp);
        return 0;
 
- err_free_2y:
+err_free_2y:
        gpio_free(pdata->gpio_pin_2y);
- err_free_1y:
+err_free_1y:
        gpio_free(pdata->gpio_pin_1y);
- err_free_s1:
+err_free_s1:
        gpio_free(pdata->gpio_pin_s1);
- err_free_s0:
+err_free_s0:
        gpio_free(pdata->gpio_pin_s0);
- err_free_nxp:
+err_free_nxp:
        kfree(nxp);
        return err;
 }
This page took 0.027335 seconds and 4 git commands to generate.