Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[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: Rafael Lourenço de Lima Chehab <chehabrafael@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>

authored by

Rafael Lourenço de Lima Chehab and committed by
Mauro Carvalho Chehab
e42c8c6e 48c91aad

+2 -2
-2
drivers/media/usb/au0828/au0828-cards.c
··· 195 195 196 196 dprintk(1, "%s()\n", __func__); 197 197 198 - dev->board = au0828_boards[dev->boardnr]; 199 - 200 198 if (dev->i2c_rc == 0) { 201 199 dev->i2c_client.addr = 0xa0 >> 1; 202 200 tveeprom_read(&dev->i2c_client, eeprom, sizeof(eeprom));
+2
drivers/media/usb/au0828/au0828-core.c
··· 222 222 mutex_init(&dev->dvb.lock); 223 223 dev->usbdev = usbdev; 224 224 dev->boardnr = id->driver_info; 225 + dev->board = au0828_boards[dev->boardnr]; 226 + 225 227 226 228 #ifdef CONFIG_VIDEO_AU0828_V4L2 227 229 dev->v4l2_dev.release = au0828_usb_v4l2_release;