Fix the logic error when reading dummy cycle for qspi ddr quad mode
Signed-off-by: Han Xu <han.xu@nxp.com>
*
* Copyright (C) 2005, Intec Automation Inc.
* Copyright (C) 2014-2016 Freescale Semiconductor, Inc.
+ * Copyright 2017 NXP
*
* This code is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* controller driver can set it in its child DT node.
* We parse it out here.
*/
- if (of_property_read_u32(np,"spi-nor,ddr-quad-read-dummy",
+ if (!of_property_read_u32(np, "spi-nor,ddr-quad-read-dummy",
&dummy))
return dummy;
}