diff options
author | Laurent Riffard <laurent.riffard@free.fr> | 2005-11-26 14:43:39 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-01-06 01:16:23 -0500 |
commit | 604f28e2b8d34cbaf08f0351374645f161335a82 (patch) | |
tree | 0f9183994b4fafa6ac58ce8e090fb8e2bf4869dd /drivers/media/video/zoran_driver.c | |
parent | a33ca23231a37e28d15da9546b1f3e83dc48284b (diff) |
[PATCH] i2c: Drop i2c_driver.{owner,name}, 5 of 11
We should use the i2c_driver.driver's .name and .owner fields
instead of the i2c_driver's ones.
This patch updates the drivers/media/video and usb/media drivers.
Signed-off-by: Laurent Riffard <laurent.riffard@free.fr>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/media/video/zoran_driver.c')
-rw-r--r-- | drivers/media/video/zoran_driver.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/media/video/zoran_driver.c b/drivers/media/video/zoran_driver.c index 07bde9acd672..4034f1b45366 100644 --- a/drivers/media/video/zoran_driver.c +++ b/drivers/media/video/zoran_driver.c | |||
@@ -1311,7 +1311,7 @@ zoran_open (struct inode *inode, | |||
1311 | res = -ENODEV; | 1311 | res = -ENODEV; |
1312 | goto open_unlock_and_return; | 1312 | goto open_unlock_and_return; |
1313 | } | 1313 | } |
1314 | if (!try_module_get(zr->decoder->driver->owner)) { | 1314 | if (!try_module_get(zr->decoder->driver->driver.owner)) { |
1315 | dprintk(1, | 1315 | dprintk(1, |
1316 | KERN_ERR | 1316 | KERN_ERR |
1317 | "%s: failed to grab ownership of i2c decoder\n", | 1317 | "%s: failed to grab ownership of i2c decoder\n", |
@@ -1321,13 +1321,13 @@ zoran_open (struct inode *inode, | |||
1321 | goto open_unlock_and_return; | 1321 | goto open_unlock_and_return; |
1322 | } | 1322 | } |
1323 | if (zr->encoder && | 1323 | if (zr->encoder && |
1324 | !try_module_get(zr->encoder->driver->owner)) { | 1324 | !try_module_get(zr->encoder->driver->driver.owner)) { |
1325 | dprintk(1, | 1325 | dprintk(1, |
1326 | KERN_ERR | 1326 | KERN_ERR |
1327 | "%s: failed to grab ownership of i2c encoder\n", | 1327 | "%s: failed to grab ownership of i2c encoder\n", |
1328 | ZR_DEVNAME(zr)); | 1328 | ZR_DEVNAME(zr)); |
1329 | res = -EIO; | 1329 | res = -EIO; |
1330 | module_put(zr->decoder->driver->owner); | 1330 | module_put(zr->decoder->driver->driver.owner); |
1331 | module_put(THIS_MODULE); | 1331 | module_put(THIS_MODULE); |
1332 | goto open_unlock_and_return; | 1332 | goto open_unlock_and_return; |
1333 | } | 1333 | } |
@@ -1393,9 +1393,9 @@ zoran_open (struct inode *inode, | |||
1393 | open_unlock_and_return: | 1393 | open_unlock_and_return: |
1394 | /* if we grabbed locks, release them accordingly */ | 1394 | /* if we grabbed locks, release them accordingly */ |
1395 | if (have_module_locks) { | 1395 | if (have_module_locks) { |
1396 | module_put(zr->decoder->driver->owner); | 1396 | module_put(zr->decoder->driver->driver.owner); |
1397 | if (zr->encoder) { | 1397 | if (zr->encoder) { |
1398 | module_put(zr->encoder->driver->owner); | 1398 | module_put(zr->encoder->driver->driver.owner); |
1399 | } | 1399 | } |
1400 | module_put(THIS_MODULE); | 1400 | module_put(THIS_MODULE); |
1401 | } | 1401 | } |
@@ -1461,9 +1461,9 @@ zoran_close (struct inode *inode, | |||
1461 | kfree(fh); | 1461 | kfree(fh); |
1462 | 1462 | ||
1463 | /* release locks on the i2c modules */ | 1463 | /* release locks on the i2c modules */ |
1464 | module_put(zr->decoder->driver->owner); | 1464 | module_put(zr->decoder->driver->driver.owner); |
1465 | if (zr->encoder) { | 1465 | if (zr->encoder) { |
1466 | module_put(zr->encoder->driver->owner); | 1466 | module_put(zr->encoder->driver->driver.owner); |
1467 | } | 1467 | } |
1468 | module_put(THIS_MODULE); | 1468 | module_put(THIS_MODULE); |
1469 | 1469 | ||