]> git.baikalelectronics.ru Git - kernel.git/commit
[media] media_device: move allocation out of media_device_*_init
authorMauro Carvalho Chehab <mchehab@osg.samsung.com>
Mon, 22 Feb 2016 15:10:49 +0000 (12:10 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Tue, 23 Feb 2016 10:19:39 +0000 (07:19 -0300)
commitb55b8fa905d052bee7fcfde41a5dcf77fa70b816
treeb039fae16d8290e8d54e4e614a1a0fb3dfd7e34a
parent62493ddad4b1d01be016e426207ea9616b67179f
[media] media_device: move allocation out of media_device_*_init

Right now, media_device_pci_init and media_device_usb_init does
media_device allocation internaly. That preents its usage when
the media_device struct is embedded on some other structure.

Move memory allocation outside it, to make it more generic.

Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/media-device.c
drivers/media/pci/saa7134/saa7134-core.c
drivers/media/usb/au0828/au0828-core.c
drivers/media/usb/cx231xx/cx231xx-cards.c
drivers/media/usb/dvb-usb-v2/dvb_usb_core.c
drivers/media/usb/dvb-usb/dvb-usb-dvb.c
drivers/media/usb/em28xx/em28xx-cards.c
drivers/media/usb/siano/smsusb.c
include/media/media-device.h