diff options
author | John Crispin <blogic@openwrt.org> | 2015-07-24 09:09:02 +0000 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2015-07-24 09:09:02 +0000 |
commit | c9f57b682ff3f6555c66943061a306139eab4121 (patch) | |
tree | a52b11432c6f275a1d3d1b6763619d2ff70ce04f /package/kernel | |
parent | 0cfefcf6fa49f1d935e01a72231782823946bec0 (diff) | |
download | master-187ad058-c9f57b682ff3f6555c66943061a306139eab4121.tar.gz master-187ad058-c9f57b682ff3f6555c66943061a306139eab4121.tar.bz2 master-187ad058-c9f57b682ff3f6555c66943061a306139eab4121.zip |
lantiq: Fix ifxos driver on linux 4.1
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@googlemail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46452 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/kernel')
-rw-r--r-- | package/kernel/lantiq/ltq-ifxos/patches/100-compat.patch | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/package/kernel/lantiq/ltq-ifxos/patches/100-compat.patch b/package/kernel/lantiq/ltq-ifxos/patches/100-compat.patch index a91dafe897..db2dd8bc5e 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, |