From mboxrd@z Thu Jan 1 00:00:00 1970 From: joe@perches.com (Joe Perches) Date: Sat, 17 Sep 2011 13:24:29 -0700 Subject: [PATCH v2] arm: omap3evm: Add support for an MT9M032 based camera board. In-Reply-To: <1316252097-4213-1-git-send-email-martin@neutronstar.dyndns.org> References: <1316252097-4213-1-git-send-email-martin@neutronstar.dyndns.org> Message-ID: <1316291069.1610.23.camel@Joe-Laptop> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Sat, 2011-09-17 at 11:34 +0200, Martin Hostettler wrote: > Adds board support for an MT9M032 based camera to omap3evm. All of the logging messages could be prefixed by the printk subsystem if you add #define pr_fmt before any #include > diff --git a/arch/arm/mach-omap2/board-omap3evm-camera.c b/arch/arm/mach-omap2/board-omap3evm-camera.c [] #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt [] > +static int omap3evm_set_mux(enum omap3evmdc_mux mux_id) [] > + switch (mux_id) { [] > + default: > + pr_err("omap3evm-camera: Invalid mux id #%d\n", mux_id); pr_err("Invalid mux id #%d\n", mux_id); [] > +static int __init camera_init(void) [] > + if (gpio_request(nCAM_VD_SEL, "nCAM_VD_SEL") < 0) { > + pr_err("omap3evm-camera: Failed to get GPIO nCAM_VD_SEL(%d)\n", > + nCAM_VD_SEL); pr_err("Failed to get GPIO nCAM_VD_SEL(%d)\n", nCAM_VD_SEL); etc.