]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commitdiff
platform: tegra: iommu: find out clients with no device node
authorSri Krishna chowdary <schowdary@nvidia.com>
Mon, 22 Sep 2014 10:28:45 +0000 (15:58 +0530)
committerSri Krishna Chowdary <schowdary@nvidia.com>
Wed, 24 Sep 2014 09:02:07 +0000 (02:02 -0700)
find out the clients which still do not have a device node.

Bug 200023904

Change-Id: Ib88b481a498b785a4fa17d51489849dd3401cce6
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/501198
Reviewed-by: Hiroshi Doyu <hdoyu@nvidia.com>
drivers/platform/tegra/iommu.c

index 9cdf2ac95774c282e3a0e9211e9e949c5c543fd3..958bf4016a3a28ad26bdf6e920e4b81cfc30c72a 100644 (file)
@@ -278,6 +278,10 @@ u64 tegra_smmu_fixup_swgids(struct device *dev, struct iommu_linear_map **map)
        if (!dev)
                return SWGIDS_ERROR_CODE;
 
+       if (!dev->of_node)
+               pr_info("No Device Node present for smmu client: %s !!\n",
+                       dev_name(dev));
+
        switch (tegra_get_chipid()) {
        case TEGRA_CHIPID_TEGRA12:
        case TEGRA_CHIPID_TEGRA13: