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
This commit is contained in:
parent
8c8a558591
commit
44c73a2fd2
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue