iommu/ipmmu-vmsa: Remove platform data handling
authorMagnus Damm <damm+renesas@opensource.se>
Wed, 17 May 2017 10:06:27 +0000 (19:06 +0900)
committerJoerg Roedel <jroedel@suse.de>
Wed, 17 May 2017 13:21:53 +0000 (15:21 +0200)
The IPMMU driver is using DT these days, and platform data is no longer
used by the driver. Remove unused code.

Signed-off-by: Magnus Damm <damm+renesas@opensource.se>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Joerg Roedel <jroedel@suse.de>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/ipmmu-vmsa.c

index b7e14ee..d10a8d5 100644 (file)
@@ -768,11 +768,6 @@ static int ipmmu_probe(struct platform_device *pdev)
        int irq;
        int ret;
 
-       if (!IS_ENABLED(CONFIG_OF) && !pdev->dev.platform_data) {
-               dev_err(&pdev->dev, "missing platform data\n");
-               return -EINVAL;
-       }
-
        mmu = devm_kzalloc(&pdev->dev, sizeof(*mmu), GFP_KERNEL);
        if (!mmu) {
                dev_err(&pdev->dev, "cannot allocate device data\n");