[PATCH 2/9] ARM i.MX5: Add IPU device support

Russell King - ARM Linux linux at arm.linux.org.uk
Thu Apr 28 12:51:00 EDT 2011

On Mon, Apr 25, 2011 at 09:38:29PM +0800, weitway at gmail.com wrote:
> +#include <mach/ipu-v3.h>
> +struct imx_ipuv3_data {
> +	resource_size_t iobase;
> +	resource_size_t iosize;
> +	resource_size_t irq_err;
> +	resource_size_t irq;

IRQs don't need to be resource_size_t.  They're treated as 'int's by
the request_irq() API, so high bits get truncated anyway.  Keep them
as int or unsigned int in this structure and just allow the compiler
to promote them as required to resource_size_t on assignment.

More information about the linux-arm-kernel mailing list