diff options
author | Magnus Damm <damm+renesas@opensource.se> | 2017-05-17 06:06:27 -0400 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2017-05-17 09:21:53 -0400 |
commit | 6aa9a30838707f19cd5de4b8710987fbc747cdaf (patch) | |
tree | 6fa761960e7b390e9433040a71d63f36f3d2fa33 | |
parent | 2ea659a9ef488125eb46da6eb571de5eae5c43f6 (diff) |
iommu/ipmmu-vmsa: Remove platform data handling
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>
-rw-r--r-- | drivers/iommu/ipmmu-vmsa.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/iommu/ipmmu-vmsa.c b/drivers/iommu/ipmmu-vmsa.c index b7e14ee863f9..d10a8d5eee4f 100644 --- a/drivers/iommu/ipmmu-vmsa.c +++ b/drivers/iommu/ipmmu-vmsa.c | |||
@@ -768,11 +768,6 @@ static int ipmmu_probe(struct platform_device *pdev) | |||
768 | int irq; | 768 | int irq; |
769 | int ret; | 769 | int ret; |
770 | 770 | ||
771 | if (!IS_ENABLED(CONFIG_OF) && !pdev->dev.platform_data) { | ||
772 | dev_err(&pdev->dev, "missing platform data\n"); | ||
773 | return -EINVAL; | ||
774 | } | ||
775 | |||
776 | mmu = devm_kzalloc(&pdev->dev, sizeof(*mmu), GFP_KERNEL); | 771 | mmu = devm_kzalloc(&pdev->dev, sizeof(*mmu), GFP_KERNEL); |
777 | if (!mmu) { | 772 | if (!mmu) { |
778 | dev_err(&pdev->dev, "cannot allocate device data\n"); | 773 | dev_err(&pdev->dev, "cannot allocate device data\n"); |