diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2009-04-30 17:43:31 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-06-16 00:30:27 -0400 |
commit | 79510cdbc76265426c6d75326436624393694ea7 (patch) | |
tree | a36e5adf746e0c8fb967ac21e7c33b77a178919e /drivers/media/dvb/firewire/firedtv-1394.c | |
parent | 017596b61f324946299fa94d9ef6f08b7478a3d8 (diff) |
media: remove driver_data direct access of struct device
In the near future, the driver core is going to not allow direct access
to the driver_data pointer in struct device. Instead, the functions
dev_get_drvdata() and dev_set_drvdata() should be used. These functions
have been around since the beginning, so are backwards compatible with
all older kernel versions.
Cc: Mauro Carvalho Chehab <mchehab@infradead.org>
Acked-by: Mike Isely <isely@pobox.com>
Cc: linux-media@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/media/dvb/firewire/firedtv-1394.c')
-rw-r--r-- | drivers/media/dvb/firewire/firedtv-1394.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/dvb/firewire/firedtv-1394.c b/drivers/media/dvb/firewire/firedtv-1394.c index 4e207658c5d9..2b6eeeab5b25 100644 --- a/drivers/media/dvb/firewire/firedtv-1394.c +++ b/drivers/media/dvb/firewire/firedtv-1394.c | |||
@@ -225,7 +225,7 @@ fail_free: | |||
225 | 225 | ||
226 | static int node_remove(struct device *dev) | 226 | static int node_remove(struct device *dev) |
227 | { | 227 | { |
228 | struct firedtv *fdtv = dev->driver_data; | 228 | struct firedtv *fdtv = dev_get_drvdata(dev); |
229 | 229 | ||
230 | fdtv_dvb_unregister(fdtv); | 230 | fdtv_dvb_unregister(fdtv); |
231 | 231 | ||
@@ -242,7 +242,7 @@ static int node_remove(struct device *dev) | |||
242 | 242 | ||
243 | static int node_update(struct unit_directory *ud) | 243 | static int node_update(struct unit_directory *ud) |
244 | { | 244 | { |
245 | struct firedtv *fdtv = ud->device.driver_data; | 245 | struct firedtv *fdtv = dev_get_drvdata(&ud->device); |
246 | 246 | ||
247 | if (fdtv->isochannel >= 0) | 247 | if (fdtv->isochannel >= 0) |
248 | cmp_establish_pp_connection(fdtv, fdtv->subunit, | 248 | cmp_establish_pp_connection(fdtv, fdtv->subunit, |