[PATCH] amba: consolidate PrimeCell magic
Linus Walleij
linus.walleij at linaro.org
Tue Aug 16 05:25:31 EDT 2011
2011/8/16 Boojin Kim <boojin.kim at samsung.com>:
> Actually, I tested this patch after applying my patches that uses
> 'dma-pl330' driver instead of the samsung specific 's3c-pl330' driver.
> 'dma-pl330' driver is registered as 'amba_device'. So, this has already
> checked on 'drivers/amba/bus.c' as your notice.
> But, 's3c-pl330' driver is registered as 'platform_device'. So, This check
> is required.
> In my opinion, This check can be deleted if caller device is registered as
> 'amba_device'.
My latest (v2) version of the patch deletes the check.
But doing that is dependent on the s3c-pl330 going away and
being replaced by the dmaengine driver, else I think we shall try to
keep the check (I will have to make it work without
dereferencing the amba_device or it will break).
Is it your plan to replace s3c-pl330 with the drivers/dma/pl330.c
driver, so I can safely delete this code?
Thanks,
Linus Walleij
More information about the linux-arm-kernel
mailing list