summaryrefslogtreecommitdiffstats
path: root/extras/recipes-kernel/linux/linux-omap-psp-2.6.32/cam/0029-omap3beagle-camera-only-register-camera-driver-for-3.patch
diff options
context:
space:
mode:
Diffstat (limited to 'extras/recipes-kernel/linux/linux-omap-psp-2.6.32/cam/0029-omap3beagle-camera-only-register-camera-driver-for-3.patch')
-rw-r--r--extras/recipes-kernel/linux/linux-omap-psp-2.6.32/cam/0029-omap3beagle-camera-only-register-camera-driver-for-3.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/extras/recipes-kernel/linux/linux-omap-psp-2.6.32/cam/0029-omap3beagle-camera-only-register-camera-driver-for-3.patch b/extras/recipes-kernel/linux/linux-omap-psp-2.6.32/cam/0029-omap3beagle-camera-only-register-camera-driver-for-3.patch
new file mode 100644
index 00000000..d642d6cb
--- /dev/null
+++ b/extras/recipes-kernel/linux/linux-omap-psp-2.6.32/cam/0029-omap3beagle-camera-only-register-camera-driver-for-3.patch
@@ -0,0 +1,31 @@
1From 7a8fe70470bd026b249f47c0aa37578a97fb2bb3 Mon Sep 17 00:00:00 2001
2From: Koen Kooi <koen@dominion.thruhere.net>
3Date: Sun, 27 Jun 2010 16:11:39 +0200
4Subject: [PATCH 29/75] omap3beagle: camera: only register camera driver for 36xx based SoCs
5
6This is a workaround for the bootcrash when used on 35xx based beagleboards.
7
8Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
9---
10 arch/arm/mach-omap2/board-omap3beagle-camera.c | 6 ++++--
11 1 files changed, 4 insertions(+), 2 deletions(-)
12
13diff --git a/arch/arm/mach-omap2/board-omap3beagle-camera.c b/arch/arm/mach-omap2/board-omap3beagle-camera.c
14index 75471f2..8faa437 100644
15--- a/arch/arm/mach-omap2/board-omap3beagle-camera.c
16+++ b/arch/arm/mach-omap2/board-omap3beagle-camera.c
17@@ -355,7 +355,9 @@ static struct platform_driver beagle_cam_driver = {
18 */
19 int __init omap3beaglelmb_init(void)
20 {
21- platform_driver_register(&beagle_cam_driver);
22- return 0;
23+ if (cpu_is_omap3630()) {
24+ platform_driver_register(&beagle_cam_driver);
25+ }
26+ return 0;
27 }
28 late_initcall(omap3beaglelmb_init);
29--
301.6.6.1
31