iommu/omap: fix erroneous omap-iommu-debug API calls
authorOhad Ben-Cohen <[email protected]>
Wed, 22 Feb 2012 08:52:51 +0000 (10:52 +0200)
committerJoerg Roedel <[email protected]>
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 <[email protected]>
Signed-off-by: Ohad Ben-Cohen <[email protected]>
Cc: Tony Lindgren <[email protected]>
Cc: Hiroshi Doyu <[email protected]>
Cc: Laurent Pinchart <[email protected]>
Cc: Joerg Roedel <[email protected]>
Signed-off-by: Joerg Roedel <[email protected]>
drivers/iommu/omap-iommu-debug.c