Merge branch 'amba-modalias' of git://ftp.arm.linux.org.uk/pub/linux/arm/kernel/git...
[firefly-linux-kernel-4.4.55.git] / drivers / gpio / gpio-pl061.c
index 093c90bd3c1d1b1d888ce2465831c95d125e0036..8f79c03049f38f63a842801991c019ffa77f3b2b 100644 (file)
@@ -238,10 +238,6 @@ static int pl061_probe(struct amba_device *dev, const struct amba_id *id)
        int ret, irq, i;
        static DECLARE_BITMAP(init_irq, NR_IRQS);
 
-       pdata = dev->dev.platform_data;
-       if (pdata == NULL)
-               return -ENODEV;
-
        chip = kzalloc(sizeof(*chip), GFP_KERNEL);
        if (chip == NULL)
                return -ENOMEM;
@@ -350,6 +346,8 @@ static struct amba_id pl061_ids[] = {
        { 0, 0 },
 };
 
+MODULE_DEVICE_TABLE(amba, pl061_ids);
+
 static struct amba_driver pl061_gpio_driver = {
        .drv = {
                .name   = "pl061_gpio",