diff options
author | John Crispin <john@openwrt.org> | 2015-07-24 09:09:02 +0000 |
---|---|---|
committer | John Crispin <john@openwrt.org> | 2015-07-24 09:09:02 +0000 |
commit | 44c73a2fd284d5685cac3a0043cab6a19f0e0fbc (patch) | |
tree | d1afecc5e37eec1de493bc1201d227215ccf12d0 /package/kernel/lantiq/ltq-ifxos | |
parent | 8c8a558591e6ec8a5b53069bd92b45d424352b5f (diff) | |
download | master-31e0f0ae-44c73a2fd284d5685cac3a0043cab6a19f0e0fbc.tar.gz master-31e0f0ae-44c73a2fd284d5685cac3a0043cab6a19f0e0fbc.tar.bz2 master-31e0f0ae-44c73a2fd284d5685cac3a0043cab6a19f0e0fbc.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>
SVN-Revision: 46452
Diffstat (limited to 'package/kernel/lantiq/ltq-ifxos')
-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, |