]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/media/video/mxb.c
V4L/DVB (7013): bw-qcam: add module parameter 'force_init' to skip polite auto-detect...
[linux-2.6-omap-h63xx.git] / drivers / media / video / mxb.c
index 152cc6b3e1521232a510442a8e6b980585c6ec75..98ad3092a079cb7659c1f8c6c29c1e6bc3b1f557 100644 (file)
@@ -153,7 +153,6 @@ static int mxb_probe(struct saa7146_dev* dev)
 {
        struct mxb* mxb = NULL;
        struct i2c_client *client;
-       struct list_head *item;
        int result;
 
        if ((result = request_module("saa7111")) < 0) {
@@ -196,8 +195,7 @@ static int mxb_probe(struct saa7146_dev* dev)
        }
 
        /* loop through all i2c-devices on the bus and look who is there */
-       list_for_each(item,&mxb->i2c_adapter.clients) {
-               client = list_entry(item, struct i2c_client, list);
+       list_for_each_entry(client, &mxb->i2c_adapter.clients, list) {
                if( I2C_ADDR_TEA6420_1 == client->addr )
                        mxb->tea6420_1 = client;
                if( I2C_ADDR_TEA6420_2 == client->addr )