[media] cx88: set dev_parent to the correct parent PCI bus
authorHans Verkuil <hans.verkuil@cisco.com>
Wed, 12 Jun 2013 14:23:44 +0000 (11:23 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 21 Jun 2013 14:08:07 +0000 (11:08 -0300)
commite5715cfb2802cb5988f856f84454645772f4e2f5
tree6c7a88d6b489aa61c1cd098aac7adccd34f12730
parent1c1d86a1ea07506c070cfb217a009d53990bdeb0
[media] cx88: set dev_parent to the correct parent PCI bus

The cx88 driver has one v4l2_device, but the video nodes are owned by two
different PCI busses. So the dev_parent pointer should be set to the correct
parent bus, otherwise sysfs won't show the correct device hierarchy.
This broke starting in 3.6 after a driver change, so this patch resurrects
the correct behavior.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/pci/cx88/cx88-core.c