aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2008-01-10 18:15:45 +0000
committerFlorian Fainelli <florian@openwrt.org>2008-01-10 18:15:45 +0000
commit535bcf767c20730eea85f510f734f346e6f9ee78 (patch)
treee0f43ba10766fb4da29c7bece06d872f90909df1 /package
parenta4f22b3defcb5e4ba88fa2120a82903a831f2278 (diff)
downloadupstream-535bcf767c20730eea85f510f734f346e6f9ee78.tar.gz
upstream-535bcf767c20730eea85f510f734f346e6f9ee78.tar.bz2
upstream-535bcf767c20730eea85f510f734f346e6f9ee78.zip
Fix compilation failures with spca5xx-le (#2735)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10158 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-rw-r--r--package/spca5xx-le/Makefile2
-rw-r--r--package/spca5xx-le/patches/100-compile_pud_shift.patch21
2 files changed, 22 insertions, 1 deletions
diff --git a/package/spca5xx-le/Makefile b/package/spca5xx-le/Makefile
index 7c1ffbbbcf..08312b126a 100644
--- a/package/spca5xx-le/Makefile
+++ b/package/spca5xx-le/Makefile
@@ -25,7 +25,7 @@ define KernelPackage/video-spca5xx-le
SUBMENU:=Video Support
TITLE:=SPCA5xx based USB webcam support (Light Edition)
URL:=http://mxhaard.free.fr/
- DEPENDS:=@LINUX_2_6 @USB_SUPPORT @BROKEN +kmod-usb-core kmod-video-core
+ DEPENDS:=@LINUX_2_6 @USB_SUPPORT +kmod-usb-core kmod-video-core
FILES:=$(PKG_BUILD_DIR)/spca5xx.$(LINUX_KMOD_SUFFIX)
AUTOLOAD:=$(call AutoLoad,90,spca5xx)
endef
diff --git a/package/spca5xx-le/patches/100-compile_pud_shift.patch b/package/spca5xx-le/patches/100-compile_pud_shift.patch
new file mode 100644
index 0000000000..91913a7993
--- /dev/null
+++ b/package/spca5xx-le/patches/100-compile_pud_shift.patch
@@ -0,0 +1,21 @@
+diff -Naur spca5xx-le/spca_core.c spca5xx-le-new/spca_core.c
+--- spca5xx-le/spca_core.c 2007-06-03 21:30:29.000000000 +0100
++++ spca5xx-le-new/spca_core.c 2008-01-06 12:48:08.000000000 +0000
+@@ -535,7 +535,7 @@
+
+ if (!pgd_none (*pgd))
+ {
+-#if PUD_SHIFT
++#ifdef PUD_SHIFT
+ pud_t *pud = pud_offset (pgd, adr);
+ if (!pud_none (*pud))
+ {
+@@ -552,7 +552,7 @@
+ ret = (unsigned long) page_address (pte_page (pte));
+ ret |= (adr & (PAGE_SIZE - 1));
+ }
+-#if PUD_SHIFT
++#ifdef PUD_SHIFT
+ }
+ #endif
+ }