diff options
author | Steven Toth <stoth@kernellabs.com> | 2009-09-17 14:06:45 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-09-18 23:16:16 -0400 |
commit | efac8aaa8e747b1c1e9eff12b3d3c26f92e26018 (patch) | |
tree | c6679249d4e88893d2345e939b86ffd6a5cd902e /drivers/media/video/saa7164/saa7164-i2c.c | |
parent | c9230457a98f33fe3658fd0bd9b9ceffdd97b63b (diff) |
V4L/DVB (12975): SAA7164: Remove the i2c client_attach/detach support, no longer required.
SAA7164: Remove the i2c client_attach/detach support, no longer required.
Signed-off-by: Steven Toth <stoth@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/saa7164/saa7164-i2c.c')
-rw-r--r-- | drivers/media/video/saa7164/saa7164-i2c.c | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/drivers/media/video/saa7164/saa7164-i2c.c b/drivers/media/video/saa7164/saa7164-i2c.c index 8198e6833f75..bc1387733553 100644 --- a/drivers/media/video/saa7164/saa7164-i2c.c +++ b/drivers/media/video/saa7164/saa7164-i2c.c | |||
@@ -69,29 +69,6 @@ static int i2c_xfer(struct i2c_adapter *i2c_adap, struct i2c_msg *msgs, int num) | |||
69 | return retval; | 69 | return retval; |
70 | } | 70 | } |
71 | 71 | ||
72 | static int attach_inform(struct i2c_client *client) | ||
73 | { | ||
74 | struct saa7164_i2c *bus = i2c_get_adapdata(client->adapter); | ||
75 | struct saa7164_dev *dev = bus->dev; | ||
76 | |||
77 | dprintk(DBGLVL_I2C, "%s i2c attach [addr=0x%x,client=%s]\n", | ||
78 | client->driver->driver.name, client->addr, client->name); | ||
79 | |||
80 | if (!client->driver->command) | ||
81 | return 0; | ||
82 | |||
83 | return 0; | ||
84 | } | ||
85 | |||
86 | static int detach_inform(struct i2c_client *client) | ||
87 | { | ||
88 | struct saa7164_dev *dev = i2c_get_adapdata(client->adapter); | ||
89 | |||
90 | dprintk(DBGLVL_I2C, "i2c detach [client=%s]\n", client->name); | ||
91 | |||
92 | return 0; | ||
93 | } | ||
94 | |||
95 | void saa7164_call_i2c_clients(struct saa7164_i2c *bus, unsigned int cmd, | 72 | void saa7164_call_i2c_clients(struct saa7164_i2c *bus, unsigned int cmd, |
96 | void *arg) | 73 | void *arg) |
97 | { | 74 | { |
@@ -117,8 +94,6 @@ static struct i2c_adapter saa7164_i2c_adap_template = { | |||
117 | .name = "saa7164", | 94 | .name = "saa7164", |
118 | .owner = THIS_MODULE, | 95 | .owner = THIS_MODULE, |
119 | .algo = &saa7164_i2c_algo_template, | 96 | .algo = &saa7164_i2c_algo_template, |
120 | .client_register = attach_inform, | ||
121 | .client_unregister = detach_inform, | ||
122 | }; | 97 | }; |
123 | 98 | ||
124 | static struct i2c_client saa7164_i2c_client_template = { | 99 | static struct i2c_client saa7164_i2c_client_template = { |