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

[media] dib7000p: setup dev.parent for i2c master built into 7000p

We need to set the dev.parent member on the dib7000p on its i2c master, or
else calls to request_firmware() will hit an oops in 2.6.31.

Signed-off-by: Devin Heitmueller <dheitmueller@kernellabs.com>
Cc: Patrick Boettcher <pboettcher@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>

authored by

Devin Heitmueller and committed by
Mauro Carvalho Chehab
85ec9d71 2750d9c3

+5
+5
drivers/media/dvb/frontends/dib7000p.c
··· 2336 2336 request_firmware() will hit an OOPS (this should be moved somewhere 2337 2337 more common) */ 2338 2338 2339 + /* FIXME: make sure the dev.parent field is initialized, or else 2340 + request_firmware() will hit an OOPS (this should be moved somewhere 2341 + more common) */ 2342 + st->i2c_master.gated_tuner_i2c_adap.dev.parent = i2c_adap->dev.parent; 2343 + 2339 2344 dibx000_init_i2c_master(&st->i2c_master, DIB7000P, st->i2c_adap, st->i2c_addr); 2340 2345 2341 2346 /* init 7090 tuner adapter */