iommu/omap: fix erroneous omap-iommu-debug API calls
authorOhad Ben-Cohen <ohad@wizery.com>
Wed, 22 Feb 2012 08:52:51 +0000 (10:52 +0200)
committerJoerg Roedel <joerg.roedel@amd.com>
Fri, 24 Feb 2012 13:10:50 +0000 (14:10 +0100)
commit46451d6229723ce1428c69e5b4f3308a775473fd
tree2c44c2c6ee8789a9ce7ecd87dc9de9b70e84b81d
parent05df1f3c2afaef5672627f2b7095f0d4c4dbc3a0
iommu/omap: fix erroneous omap-iommu-debug API calls

Adapt omap-iommu-debug to the latest omap-iommu API changes, which
were introduced by commit fabdbca "iommu/omap: eliminate the public
omap_find_iommu_device() method".

In a nutshell, iommu users are not expected to provide the omap_iommu
handle anymore - instead, iommus are attached using their user's device
handle.

omap-iommu-debug is a hybrid beast though: it invokes both public and
private omap iommu API, so fix it as necessary (otherwise a crash
is imminent).

Note: omap-iommu-debug is a bit disturbing, as it fiddles with internal
omap iommu data and requires exposing API which is otherwise not needed.
It should better be more tightly coupled with omap-iommu, to prevent
further bit rot and avoid exposing redundant API. Naturally that's out
of scope for the -rc cycle, so for now just fix the obvious.

Reported-by: Russell King <linux@arm.linux.org.uk>
Signed-off-by: Ohad Ben-Cohen <ohad@wizery.com>
Cc: Tony Lindgren <tony@atomide.com>
Cc: Hiroshi Doyu <hdoyu@nvidia.com>
Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: Joerg Roedel <Joerg.Roedel@amd.com>
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
drivers/iommu/omap-iommu-debug.c
This page took 0.047684 seconds and 5 git commands to generate.