diff options
author | Laurentiu Tudor <laurentiu.tudor@nxp.com> | 2020-09-14 13:54:58 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-10-02 13:25:32 +0200 |
commit | 3b844345e18042631a0f061d1f35045f2de74347 (patch) | |
tree | d6192342fe785c66078e1db9282da34999adc20d /drivers | |
parent | 9ace0b4dab1c3913810c50948d714afcbd2c767e (diff) | |
download | linux-stable-3b844345e18042631a0f061d1f35045f2de74347.tar.gz linux-stable-3b844345e18042631a0f061d1f35045f2de74347.tar.bz2 linux-stable-3b844345e18042631a0f061d1f35045f2de74347.zip |
bus: fsl-mc: don't assume an iommu is always present
There are certain scenarios where an iommu is not present, e.g.
booting in a VM. Let's support these scenarios by dropping the
check.
Signed-off-by: Laurentiu Tudor <laurentiu.tudor@nxp.com>
Link: https://lore.kernel.org/r/20200914105459.27448-1-laurentiu.tudor@nxp.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/bus/fsl-mc/fsl-mc-bus.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/bus/fsl-mc/fsl-mc-bus.c b/drivers/bus/fsl-mc/fsl-mc-bus.c index b69794e7364d..b0449df117e8 100644 --- a/drivers/bus/fsl-mc/fsl-mc-bus.c +++ b/drivers/bus/fsl-mc/fsl-mc-bus.c @@ -908,9 +908,6 @@ static int fsl_mc_bus_probe(struct platform_device *pdev) u32 mc_portal_size, mc_stream_id; struct resource *plat_res; - if (!iommu_present(&fsl_mc_bus_type)) - return -EPROBE_DEFER; - mc = devm_kzalloc(&pdev->dev, sizeof(*mc), GFP_KERNEL); if (!mc) return -ENOMEM; |