diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2008-05-18 16:56:54 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-05-18 16:56:54 -0400 |
| commit | 3e5b787ac38575c88ceb20619bcda09cb4c17d8b (patch) | |
| tree | e1617b8c3fa243d919912bebeca7a89840532d34 /drivers/media/video/saa7127.c | |
| parent | 026bf9bbcf88f31ea619eb46cf9d62beade00821 (diff) | |
| parent | 70455e790391dac85d9b483a9e286a40df1ecc7f (diff) | |
Merge branch 'i2c-for-linus' of git://jdelvare.pck.nerim.net/jdelvare-2.6
* 'i2c-for-linus' of git://jdelvare.pck.nerim.net/jdelvare-2.6:
i2c/max6875: Really prevent 24RF08 corruption
i2c-amd756: Fix functionality flags
i2c: Kill the old driver matching scheme
i2c: Convert remaining new-style drivers to use module aliasing
i2c: Switch pasemi to the new device/driver matching scheme
i2c: Clean up Blackfin BF527 I2C device declarations
i2c-nforce2: Disable the second SMBus channel on the DFI Lanparty NF4 Expert
i2c: New co-maintainer
Diffstat (limited to 'drivers/media/video/saa7127.c')
| -rw-r--r-- | drivers/media/video/saa7127.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/drivers/media/video/saa7127.c b/drivers/media/video/saa7127.c index e750cd65c1c3..79d11a658bdf 100644 --- a/drivers/media/video/saa7127.c +++ b/drivers/media/video/saa7127.c | |||
| @@ -672,8 +672,6 @@ static int saa7127_probe(struct i2c_client *client, | |||
| 672 | if (!i2c_check_functionality(client->adapter, I2C_FUNC_SMBUS_BYTE_DATA)) | 672 | if (!i2c_check_functionality(client->adapter, I2C_FUNC_SMBUS_BYTE_DATA)) |
| 673 | return -EIO; | 673 | return -EIO; |
| 674 | 674 | ||
| 675 | snprintf(client->name, sizeof(client->name) - 1, "saa7127"); | ||
| 676 | |||
| 677 | v4l_dbg(1, debug, client, "detecting saa7127 client on address 0x%x\n", | 675 | v4l_dbg(1, debug, client, "detecting saa7127 client on address 0x%x\n", |
| 678 | client->addr << 1); | 676 | client->addr << 1); |
| 679 | 677 | ||
| @@ -741,11 +739,18 @@ static int saa7127_remove(struct i2c_client *client) | |||
| 741 | 739 | ||
| 742 | /* ----------------------------------------------------------------------- */ | 740 | /* ----------------------------------------------------------------------- */ |
| 743 | 741 | ||
| 742 | static struct i2c_device_id saa7127_id[] = { | ||
| 743 | { "saa7127", 0 }, | ||
| 744 | { } | ||
| 745 | }; | ||
| 746 | MODULE_DEVICE_TABLE(i2c, saa7127_id); | ||
| 747 | |||
| 744 | static struct v4l2_i2c_driver_data v4l2_i2c_data = { | 748 | static struct v4l2_i2c_driver_data v4l2_i2c_data = { |
| 745 | .name = "saa7127", | 749 | .name = "saa7127", |
| 746 | .driverid = I2C_DRIVERID_SAA7127, | 750 | .driverid = I2C_DRIVERID_SAA7127, |
| 747 | .command = saa7127_command, | 751 | .command = saa7127_command, |
| 748 | .probe = saa7127_probe, | 752 | .probe = saa7127_probe, |
| 749 | .remove = saa7127_remove, | 753 | .remove = saa7127_remove, |
| 754 | .id_table = saa7127_id, | ||
| 750 | }; | 755 | }; |
| 751 | 756 | ||
