[OpenWrt-Devel] [PATCH] lantiq: Fix ifxos driver on linux 4.1

Martin Blumenstingl martin.blumenstingl at googlemail.com
Tue Jul 21 14:39:18 EDT 2015


request_mem_region returns NULL when requesting the region failed, and
a valid pointer when it was successful. Currently the condition is
inverted.

Signed-off-by: Martin Blumenstingl <martin.blumenstingl at googlemail.com>
---
 package/kernel/lantiq/ltq-ifxos/patches/100-compat.patch | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/kernel/lantiq/ltq-ifxos/patches/100-compat.patch b/package/kernel/lantiq/ltq-ifxos/patches/100-compat.patch
index a91dafe..db2dd8b 100644
--- a/package/kernel/lantiq/ltq-ifxos/patches/100-compat.patch
+++ b/package/kernel/lantiq/ltq-ifxos/patches/100-compat.patch
@@ -157,7 +157,7 @@
     /* can't fail */
     request_mem_region(physicalAddr, addrRangeSize_byte, pName);
 +#else
-+   if ( request_mem_region(physicalAddr, addrRangeSize_byte, pName) )
++   if ( !request_mem_region(physicalAddr, addrRangeSize_byte, pName) )
 +   {
 +      IFXOS_PRN_USR_ERR_NL( IFXOS, IFXOS_PRN_LEVEL_ERR,
 +         ("IFXOS: ERROR Phy2Virt map, region request - addr 0x%08lX (size 0x%lX) not free" IFXOS_CRLF,
-- 
2.4.6
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list