blob: d642d6cb50dfbaae6be86e4c332ad59f15acb156 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
From 7a8fe70470bd026b249f47c0aa37578a97fb2bb3 Mon Sep 17 00:00:00 2001
From: Koen Kooi <koen@dominion.thruhere.net>
Date: Sun, 27 Jun 2010 16:11:39 +0200
Subject: [PATCH 29/75] omap3beagle: camera: only register camera driver for 36xx based SoCs
This is a workaround for the bootcrash when used on 35xx based beagleboards.
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
---
arch/arm/mach-omap2/board-omap3beagle-camera.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/arch/arm/mach-omap2/board-omap3beagle-camera.c b/arch/arm/mach-omap2/board-omap3beagle-camera.c
index 75471f2..8faa437 100644
--- a/arch/arm/mach-omap2/board-omap3beagle-camera.c
+++ b/arch/arm/mach-omap2/board-omap3beagle-camera.c
@@ -355,7 +355,9 @@ static struct platform_driver beagle_cam_driver = {
*/
int __init omap3beaglelmb_init(void)
{
- platform_driver_register(&beagle_cam_driver);
- return 0;
+ if (cpu_is_omap3630()) {
+ platform_driver_register(&beagle_cam_driver);
+ }
+ return 0;
}
late_initcall(omap3beaglelmb_init);
--
1.6.6.1
|