diff options
-rw-r--r-- | drivers/media/usb/hdpvr/hdpvr-i2c.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/media/usb/hdpvr/hdpvr-i2c.c b/drivers/media/usb/hdpvr/hdpvr-i2c.c index 031cf024304c..6c5054f3f674 100644 --- a/drivers/media/usb/hdpvr/hdpvr-i2c.c +++ b/drivers/media/usb/hdpvr/hdpvr-i2c.c | |||
@@ -217,8 +217,7 @@ int hdpvr_register_i2c_adapter(struct hdpvr_device *dev) | |||
217 | 217 | ||
218 | hdpvr_activate_ir(dev); | 218 | hdpvr_activate_ir(dev); |
219 | 219 | ||
220 | memcpy(&dev->i2c_adapter, &hdpvr_i2c_adapter_template, | 220 | dev->i2c_adapter = hdpvr_i2c_adapter_template; |
221 | sizeof(struct i2c_adapter)); | ||
222 | dev->i2c_adapter.dev.parent = &dev->udev->dev; | 221 | dev->i2c_adapter.dev.parent = &dev->udev->dev; |
223 | 222 | ||
224 | i2c_set_adapdata(&dev->i2c_adapter, dev); | 223 | i2c_set_adapdata(&dev->i2c_adapter, dev); |