Commit e42c8c6e authored by Rafael Lourenço de Lima Chehab's avatar Rafael Lourenço de Lima Chehab Committed by Mauro Carvalho Chehab

[media] au0828: move dev->boards atribuition to happen earlier

The attribution of dev->boards occured too late, which
would couse an OOPS in media controller registration.
Signed-off-by: default avatarRafael Lourenço de Lima Chehab <chehabrafael@gmail.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent 48c91aad
...@@ -195,8 +195,6 @@ void au0828_card_setup(struct au0828_dev *dev) ...@@ -195,8 +195,6 @@ void au0828_card_setup(struct au0828_dev *dev)
dprintk(1, "%s()\n", __func__); dprintk(1, "%s()\n", __func__);
dev->board = au0828_boards[dev->boardnr];
if (dev->i2c_rc == 0) { if (dev->i2c_rc == 0) {
dev->i2c_client.addr = 0xa0 >> 1; dev->i2c_client.addr = 0xa0 >> 1;
tveeprom_read(&dev->i2c_client, eeprom, sizeof(eeprom)); tveeprom_read(&dev->i2c_client, eeprom, sizeof(eeprom));
......
...@@ -222,6 +222,8 @@ static int au0828_usb_probe(struct usb_interface *interface, ...@@ -222,6 +222,8 @@ static int au0828_usb_probe(struct usb_interface *interface,
mutex_init(&dev->dvb.lock); mutex_init(&dev->dvb.lock);
dev->usbdev = usbdev; dev->usbdev = usbdev;
dev->boardnr = id->driver_info; dev->boardnr = id->driver_info;
dev->board = au0828_boards[dev->boardnr];
#ifdef CONFIG_VIDEO_AU0828_V4L2 #ifdef CONFIG_VIDEO_AU0828_V4L2
dev->v4l2_dev.release = au0828_usb_v4l2_release; dev->v4l2_dev.release = au0828_usb_v4l2_release;
......
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