From patchwork Mon Jul 26 16:20:58 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guennadi Liakhovetski X-Patchwork-Id: 114305 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.4/8.14.3) with ESMTP id o6QGKh78020255 for ; Mon, 26 Jul 2010 16:20:43 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754125Ab0GZQUm (ORCPT ); Mon, 26 Jul 2010 12:20:42 -0400 Received: from mailout-de.gmx.net ([213.165.64.23]:48829 "HELO mail.gmx.net" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with SMTP id S1753909Ab0GZQUl (ORCPT ); Mon, 26 Jul 2010 12:20:41 -0400 Received: (qmail invoked by alias); 26 Jul 2010 16:20:39 -0000 Received: from p57BD0776.dip0.t-ipconnect.de (EHLO axis700.grange) [87.189.7.118] by mail.gmx.net (mp007) with SMTP; 26 Jul 2010 18:20:39 +0200 X-Authenticated: #20450766 X-Provags-ID: V01U2FsdGVkX196tYxc4px69a19vmNZ35ByA0cTYKLK0UQq4G+5MV ijO3REmSCRm++M Received: from lyakh (helo=localhost) by axis700.grange with local-esmtp (Exim 4.63) (envelope-from ) id 1OdQQE-0002Xd-SI; Mon, 26 Jul 2010 18:20:58 +0200 Date: Mon, 26 Jul 2010 18:20:58 +0200 (CEST) From: Guennadi Liakhovetski To: Linux Media Mailing List cc: "linux-sh@vger.kernel.org" Subject: [PATCH 3/5] V4L2: soc-camera: export soc-camera bus type for notifications In-Reply-To: Message-ID: References: MIME-Version: 1.0 X-Y-GMX-Trusted: 0 Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Mon, 26 Jul 2010 16:20:43 +0000 (UTC) diff --git a/drivers/media/video/soc_camera.c b/drivers/media/video/soc_camera.c index 475757b..f203293 100644 --- a/drivers/media/video/soc_camera.c +++ b/drivers/media/video/soc_camera.c @@ -1107,13 +1107,14 @@ static int soc_camera_resume(struct device *dev) return ret; } -static struct bus_type soc_camera_bus_type = { +struct bus_type soc_camera_bus_type = { .name = "soc-camera", .probe = soc_camera_probe, .remove = soc_camera_remove, .suspend = soc_camera_suspend, .resume = soc_camera_resume, }; +EXPORT_SYMBOL_GPL(soc_camera_bus_type); static struct device_driver ic_drv = { .name = "camera", diff --git a/include/media/soc_camera.h b/include/media/soc_camera.h index b8289c2..2ce9573 100644 --- a/include/media/soc_camera.h +++ b/include/media/soc_camera.h @@ -12,12 +12,15 @@ #ifndef SOC_CAMERA_H #define SOC_CAMERA_H +#include #include #include #include #include #include +extern struct bus_type soc_camera_bus_type; + struct soc_camera_device { struct list_head list; struct device dev;