u32 tmp;
result = xc5000_readreg(priv, XREG_FREQ_ERROR, ®Data);
- if (result)
+ if (result != XC_RESULT_SUCCESS)
return result;
tmp = (u32)regData;
int result;
result = xc5000_readreg(priv, XREG_VERSION, &data);
- if (result)
+ if (result != XC_RESULT_SUCCESS)
return result;
(*hw_majorversion) = (data >> 12) & 0x0F;
int result;
result = xc5000_readreg(priv, XREG_HSYNC_FREQ, ®Data);
- if (result)
+ if (result != XC_RESULT_SUCCESS)
return result;
(*hsync_freq_hz) = ((regData & 0x0fff) * 763)/100;
/* Check if firmware has been loaded. It is possible that another
instance of the driver has loaded the firmware.
*/
- if (xc5000_readreg(priv, XREG_PRODUCT_ID, &id) != 0)
+ if (xc5000_readreg(priv, XREG_PRODUCT_ID, &id) != XC_RESULT_SUCCESS)
goto fail;
switch (id) {