Re: [PATCH Resend 1/1] mfd: davinci_voicecodec: Convert to usedevm_* APIs

From: Samuel Ortiz
Date: Tue Jun 18 2013 - 04:41:10 EST

Hi Sachin,

On Wed, Jun 12, 2013 at 01:49:42PM +0530, Sachin Kamat wrote:
> devm_* APIs are device managed and make code simpler.
> Signed-off-by: Sachin Kamat <sachin.kamat@xxxxxxxxxx>
> Cc: Miguel Aguilar <miguel.aguilar@xxxxxxxxxxxx>
> ---
> CC'd Lee Jones
> Patch is based on mfd-next tree and compile tested.
> This driver gives following compilation error (not introduced by this patch):
> drivers/mfd/davinci_voicecodec.c:86:3: error: implicit declaration
> of function âio_v2pâ [-Werror=implicit-function-declaration]
> (dma_addr_t)(io_v2p(davinci_vc->base) + DAVINCI_VC_WFIFO);
> In order to test my changes I added the following to davinci_voicecodec.h file:
> +#define IO_OFFSET 0xfd000000 /* Virtual IO = 0xfec00000 */
> +#define io_v2p(va) ((va) - IO_OFFSET)
> I am not sure if these changes are right fix for the above error.
io_v2p is define in davinci's mach/hardware.h so I believe this is what
you should include in davinci_voicecodec.h.


Intel Open Source Technology Centre
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at