iommu/pamu: WARN when fsl_pamu_probe() is called more than once
authorJoerg Roedel <jroedel@suse.de>
Wed, 9 Aug 2017 14:15:43 +0000 (16:15 +0200)
committerJoerg Roedel <jroedel@suse.de>
Tue, 15 Aug 2017 11:59:34 +0000 (13:59 +0200)
commit07eb6fdf4933336098c3e955961071e85d3dff9f
tree73ceda27f370c98d39bfc4905a3d690849278a2a
parentaf29d9fa41b4b427830aea3911224aef6d61ee50
iommu/pamu: WARN when fsl_pamu_probe() is called more than once

The function probes the PAMU hardware from device-tree
specifications. It initializes global variables and can thus
be only safely called once.

Add a check that that prints a warning when its called more
than once.

Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/fsl_pamu.c