Commit 64919e2d authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] gcc-3.5: video

drivers/media/video/mxb.c: In function `mxb_probe':
drivers/media/video/mxb.c:264: error: invalid lvalue in assignment
parent db623a6b
......@@ -131,7 +131,7 @@ static int dpc_probe(struct saa7146_dev* dev)
DEB_D(("dpc_v4l2.o: dpc_probe succeeded for this device.\n"));
/* we store the pointer in our private data field */
(struct dpc*)dev->ext_priv = dpc;
dev->ext_priv = dpc;
return 0;
}
......
......@@ -245,7 +245,7 @@ static int hexium_attach(struct saa7146_dev *dev, struct saa7146_pci_extension_d
return -ENOMEM;
}
memset(hexium, 0x0, sizeof(struct hexium));
(struct hexium *) dev->ext_priv = hexium;
dev->ext_priv = hexium;
/* enable i2c-port pins */
saa7146_write(dev, MC1, (MASK_08 | MASK_24 | MASK_10 | MASK_26));
......
......@@ -255,7 +255,7 @@ static int hexium_probe(struct saa7146_dev *dev)
if (0x17c8 == dev->pci->subsystem_vendor && 0x0101 == dev->pci->subsystem_device) {
printk("hexium_orion: device is a Hexium Orion w/ 1 SVHS + 3 BNC inputs.\n");
/* we store the pointer in our private data field */
(struct hexium *) dev->ext_priv = hexium;
dev->ext_priv = hexium;
hexium->type = HEXIUM_ORION_1SVHS_3BNC;
return 0;
}
......@@ -263,7 +263,7 @@ static int hexium_probe(struct saa7146_dev *dev)
if (0x17c8 == dev->pci->subsystem_vendor && 0x2101 == dev->pci->subsystem_device) {
printk("hexium_orion: device is a Hexium Orion w/ 4 BNC inputs.\n");
/* we store the pointer in our private data field */
(struct hexium *) dev->ext_priv = hexium;
dev->ext_priv = hexium;
hexium->type = HEXIUM_ORION_4BNC;
return 0;
}
......@@ -273,7 +273,7 @@ static int hexium_probe(struct saa7146_dev *dev)
if (0 == (err = i2c_smbus_xfer(&hexium->i2c_adapter, 0x4e, 0, I2C_SMBUS_READ, 0x00, I2C_SMBUS_BYTE_DATA, &data))) {
printk("hexium_orion: device is a Hexium HV-PCI6/Orion (old).\n");
/* we store the pointer in our private data field */
(struct hexium *) dev->ext_priv = hexium;
dev->ext_priv = hexium;
hexium->type = HEXIUM_HV_PCI6_ORION;
return 0;
}
......
......@@ -261,7 +261,7 @@ static int mxb_probe(struct saa7146_dev* dev)
/* all devices are present, probe was successful */
/* we store the pointer in our private data field */
(struct mxb*)dev->ext_priv = mxb;
dev->ext_priv = mxb;
return 0;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment