Re: [PATCH/RFC 04/14] ASoC: samsung: i2s: Request memory region in driver probe()

2014-12-17 Thread Sylwester Nawrocki
On 12/12/14 19:49, Mark Brown wrote: > On Thu, Dec 11, 2014 at 06:45:42PM +0100, Sylwester Nawrocki wrote: >> > The memory mapped registers region is common for both DAIs so request >> > it in the I2S platform device driver's probe for the platform device >> > corresponding to the primary DAI, rath

Re: [PATCH/RFC 04/14] ASoC: samsung: i2s: Request memory region in driver probe()

2014-12-12 Thread Mark Brown
On Thu, Dec 11, 2014 at 06:45:42PM +0100, Sylwester Nawrocki wrote: > The memory mapped registers region is common for both DAIs so request > it in the I2S platform device driver's probe for the platform device > corresponding to the primary DAI, rather than in the ASoC DAI's probe > callback. Whil

[PATCH/RFC 04/14] ASoC: samsung: i2s: Request memory region in driver probe()

2014-12-11 Thread Sylwester Nawrocki
The memory mapped registers region is common for both DAIs so request it in the I2S platform device driver's probe for the platform device corresponding to the primary DAI, rather than in the ASoC DAI's probe callback. While at it switch to devm_ioremap_resource(). This also drops the hard coded (0