From: Stephen Rothwell <hidden> Date: 2009-07-17 01:29:44
Hi Takashi,
Today's linux-next build (x86_64 allmodconfig) failed like this:
sound/soc/codecs/ad1938.c: In function 'ad1938_spi_probe':
sound/soc/codecs/ad1938.c:423: error: 'struct device' has no member named 'driver_data'
sound/soc/codecs/ad1938.c: In function 'ad1938_spi_remove':
sound/soc/codecs/ad1938.c:430: error: 'struct device' has no member named 'driver_data'
Caused by commit 1274738d85d0e25c4f82d83f50a6bcbe2397e9ea ("ASoC: new
ad1938 codec driver based on asoc") interacting with commit
2e34003ff6237e2216396d61dc8b32ea5959de80 ("Driver core: move
dev_get/set_drvdata to drivers/base/dd.c") from the driver-core.current
tree (which will, I assume, be sent to Linus shortly - right, Greg?).
New drivers need to use the (existing) API's dev_{set,get}_drvdata().
I have used the version of the sound tree from next-20090716 for today.
--
Cheers,
Stephen Rothwell sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/
On Fri, Jul 17, 2009 at 11:29:35AM +1000, Stephen Rothwell wrote:
Hi Takashi,
Today's linux-next build (x86_64 allmodconfig) failed like this:
sound/soc/codecs/ad1938.c: In function 'ad1938_spi_probe':
sound/soc/codecs/ad1938.c:423: error: 'struct device' has no member named 'driver_data'
sound/soc/codecs/ad1938.c: In function 'ad1938_spi_remove':
sound/soc/codecs/ad1938.c:430: error: 'struct device' has no member named 'driver_data'
Caused by commit 1274738d85d0e25c4f82d83f50a6bcbe2397e9ea ("ASoC: new
ad1938 codec driver based on asoc") interacting with commit
2e34003ff6237e2216396d61dc8b32ea5959de80 ("Driver core: move
dev_get/set_drvdata to drivers/base/dd.c") from the driver-core.current
tree (which will, I assume, be sent to Linus shortly - right, Greg?).
It turned out to be "too late" to make the change, I missed the -rc2
window, so it will be a .32 thing.
I'll move it from my driver-core.current to my driver-core tree to clear
up any confusion.
But yes, the apis should be used instead of directly accessing the
fields.
thanks,
greg k-h
From: Stephen Rothwell <hidden> Date: 2009-07-17 05:32:52
Hi Greg,
On Thu, 16 Jul 2009 21:56:20 -0700 Greg KH [off-list ref] wrote:
It turned out to be "too late" to make the change, I missed the -rc2
window, so it will be a .32 thing.
I'll move it from my driver-core.current to my driver-core tree to clear
up any confusion.
At Fri, 17 Jul 2009 11:29:35 +1000,
Stephen Rothwell wrote:
[1 <text/plain; US-ASCII (quoted-printable)>]
Hi Takashi,
Today's linux-next build (x86_64 allmodconfig) failed like this:
sound/soc/codecs/ad1938.c: In function 'ad1938_spi_probe':
sound/soc/codecs/ad1938.c:423: error: 'struct device' has no member named 'driver_data'
sound/soc/codecs/ad1938.c: In function 'ad1938_spi_remove':
sound/soc/codecs/ad1938.c:430: error: 'struct device' has no member named 'driver_data'
Caused by commit 1274738d85d0e25c4f82d83f50a6bcbe2397e9ea ("ASoC: new
ad1938 codec driver based on asoc") interacting with commit
2e34003ff6237e2216396d61dc8b32ea5959de80 ("Driver core: move
dev_get/set_drvdata to drivers/base/dd.c") from the driver-core.current
tree (which will, I assume, be sent to Linus shortly - right, Greg?).
New drivers need to use the (existing) API's dev_{set,get}_drvdata().
Yep. Fixed now.
I have used the version of the sound tree from next-20090716 for today.
From: Mark Brown <hidden> Date: 2009-07-17 09:28:29
On Fri, Jul 17, 2009 at 11:29:35AM +1000, Stephen Rothwell wrote:
Caused by commit 1274738d85d0e25c4f82d83f50a6bcbe2397e9ea ("ASoC: new
ad1938 codec driver based on asoc") interacting with commit
2e34003ff6237e2216396d61dc8b32ea5959de80 ("Driver core: move
dev_get/set_drvdata to drivers/base/dd.c") from the driver-core.current
tree (which will, I assume, be sent to Linus shortly - right, Greg?).
I've fixed this.
New drivers need to use the (existing) API's dev_{set,get}_drvdata().
Incidentally, is there any great reason not to have the equivalent thing
for platform data? I can supply a patch.
From 91a0351b2d1e86f421ee9c95d07136f648d2da06 Mon Sep 17 00:00:00 2001
From: Mark Brown <redacted>
Date: Fri, 17 Jul 2009 10:18:14 +0100
Subject: [PATCH] ASoC: Use driverdata accessors in ad1938
Signed-off-by: Mark Brown <redacted>
---
sound/soc/codecs/ad1938.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
At Fri, 17 Jul 2009 10:28:25 +0100,
Mark Brown wrote:
On Fri, Jul 17, 2009 at 11:29:35AM +1000, Stephen Rothwell wrote:
quoted
Caused by commit 1274738d85d0e25c4f82d83f50a6bcbe2397e9ea ("ASoC: new
ad1938 codec driver based on asoc") interacting with commit
2e34003ff6237e2216396d61dc8b32ea5959de80 ("Driver core: move
dev_get/set_drvdata to drivers/base/dd.c") from the driver-core.current
tree (which will, I assume, be sent to Linus shortly - right, Greg?).
I've fixed this.
Oh, it was already fixed this morning.
I couldn't send a notify mail just because my server crashed after
pushing the tree... And rebooted now :)
Takashi
On Fri, Jul 17, 2009 at 03:32:43PM +1000, Stephen Rothwell wrote:
Hi Greg,
On Thu, 16 Jul 2009 21:56:20 -0700 Greg KH [off-list ref] wrote:
quoted
It turned out to be "too late" to make the change, I missed the -rc2
window, so it will be a .32 thing.
I'll move it from my driver-core.current to my driver-core tree to clear
up any confusion.