From: Laurent Pinchart Date: Mon, 12 Mar 2012 13:02:47 +0000 (-0300) Subject: [media] media: Initialize the media core with subsys_initcall() X-Git-Tag: v3.4-rc1~110^2^2~42 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ff732d281b29ad7898c1193843ebe6a37d426e36;p=pandora-kernel.git [media] media: Initialize the media core with subsys_initcall() Media-related drivers living outside drivers/media/ (such as the UVC gadget driver in drivers/usb/gadget/) rely on the media core being initialized before they're probed. As drivers/usb/ is linked before drivers/media/, this is currently not the case and will lead to crashes if the drivers are not compiled as modules. Register media_devnode_init() as a subsys_initcall() instead of module_init() to fix this. Signed-off-by: Laurent Pinchart Acked-by: Bhupesh Sharma Acked-by: Sakari Ailus Tested-by: Sakari Ailus Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed