On 17/11/15 09:57, shannon.z...@linaro.org wrote:
> From: Shannon Zhao <shannon.z...@linaro.org>
> 
> Add a bus_notifier for AMBA bus device in order to map the device
> mmio regions when DOM0 booting with ACPI.
[...]
> +static int xen_map_amba_device_mmio(struct amba_device *adev)
> +{
> +     int rc = 0;
> +     struct resource *r = &adev->res;
> +
> +     if (resource_type(r) == IORESOURCE_MEM)
> +     {

Haven't I seen something like this before...?

This is (almost) identical to the code added for platform devices.  This
needs to be generic.

David

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

Reply via email to