From patchwork Tue Apr 21 07:37:45 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guennadi Liakhovetski X-Patchwork-Id: 19131 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n3L7bjdj029378 for ; Tue, 21 Apr 2009 07:37:45 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754359AbZDUHhn (ORCPT ); Tue, 21 Apr 2009 03:37:43 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754318AbZDUHhm (ORCPT ); Tue, 21 Apr 2009 03:37:42 -0400 Received: from mail.gmx.net ([213.165.64.20]:60080 "HELO mail.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1754137AbZDUHhl (ORCPT ); Tue, 21 Apr 2009 03:37:41 -0400 Received: (qmail invoked by alias); 21 Apr 2009 07:37:39 -0000 Received: from p57BD18C8.dip0.t-ipconnect.de (EHLO axis700.grange) [87.189.24.200] by mail.gmx.net (mp056) with SMTP; 21 Apr 2009 09:37:39 +0200 X-Authenticated: #20450766 X-Provags-ID: V01U2FsdGVkX18Uzr4GvggUSj+3kyn7xuqIrVO35uDGOs1mU1EFWI PHcoR6zgiuX8RH Received: from lyakh (helo=localhost) by axis700.grange with local-esmtp (Exim 4.63) (envelope-from ) id 1LwAY5-0001q0-KR; Tue, 21 Apr 2009 09:37:45 +0200 Date: Tue, 21 Apr 2009 09:37:45 +0200 (CEST) From: Guennadi Liakhovetski To: Linux Media Mailing List cc: Hans Verkuil Subject: [PATCH] soc-camera: link host drivers after clients Message-ID: MIME-Version: 1.0 X-Y-GMX-Trusted: 0 X-FuHaFi: 0.53 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org With the transition of soc-camera to become a platform driver and to the v4l2-subdev framework the initialisation order becomes important. In case of a static build clients (i2c) drivers have to be available when host drivers are probed. Moving host drivers down in the Makefile achieves the desired order. Signed-off-by: Guennadi Liakhovetski --- -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/media/video/Makefile b/drivers/media/video/Makefile index 7c0bd6e..400bbd5 100644 --- a/drivers/media/video/Makefile +++ b/drivers/media/video/Makefile @@ -134,10 +134,6 @@ obj-$(CONFIG_VIDEO_CX18) += cx18/ obj-$(CONFIG_VIDEO_VIVI) += vivi.o obj-$(CONFIG_VIDEO_CX23885) += cx23885/ -obj-$(CONFIG_VIDEO_MX1) += mx1_camera.o -obj-$(CONFIG_VIDEO_MX3) += mx3_camera.o -obj-$(CONFIG_VIDEO_PXA27x) += pxa_camera.o -obj-$(CONFIG_VIDEO_SH_MOBILE_CEU) += sh_mobile_ceu_camera.o obj-$(CONFIG_VIDEO_OMAP2) += omap2cam.o obj-$(CONFIG_SOC_CAMERA) += soc_camera.o obj-$(CONFIG_SOC_CAMERA_MT9M001) += mt9m001.o @@ -147,6 +143,11 @@ obj-$(CONFIG_SOC_CAMERA_MT9V022) += mt9v022.o obj-$(CONFIG_SOC_CAMERA_OV772X) += ov772x.o obj-$(CONFIG_SOC_CAMERA_PLATFORM) += soc_camera_platform.o obj-$(CONFIG_SOC_CAMERA_TW9910) += tw9910.o +# soc-camera host drivers have to be linked after camera drivers +obj-$(CONFIG_VIDEO_MX1) += mx1_camera.o +obj-$(CONFIG_VIDEO_MX3) += mx3_camera.o +obj-$(CONFIG_VIDEO_PXA27x) += pxa_camera.o +obj-$(CONFIG_VIDEO_SH_MOBILE_CEU) += sh_mobile_ceu_camera.o obj-$(CONFIG_VIDEO_AU0828) += au0828/