r82xx: remove incorrect error from reg caching

pull/8/head
Oliver Jowett 2014-08-26 22:32:30 +01:00 zatwierdzone przez Kyle Keen
rodzic 34ab4ac13a
commit 6d5780388b
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -344,7 +344,7 @@ static int r82xx_write_batch_sync(struct r82xx_priv *priv)
return -1;
priv->reg_batch = 0;
if (priv->reg_low > priv->reg_high)
return -1;
return 0; /* No registers were changed */
offset = priv->reg_low - REG_SHADOW_START;
len = priv->reg_high - priv->reg_low + 1;
rc = r82xx_write(priv, priv->reg_low, priv->regs+offset, len);