projects
/
carl9170fw.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cfg80211: add Intel Mobile Communications copyright
[carl9170fw.git]
/
carlfw
/
include
/
io.h
diff --git
a/carlfw/include/io.h
b/carlfw/include/io.h
index 1186af61aa1a372814155b4d988b5a392a33e1b1..d48059424f8f426908e47897e78aa621837a35d9 100644
(file)
--- a/
carlfw/include/io.h
+++ b/
carlfw/include/io.h
@@
-10,8
+10,7
@@
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
- * with this program; if not, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * with this program; If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __CARL9170FW_IO_H
*/
#ifndef __CARL9170FW_IO_H
@@
-81,13
+80,11
@@
static inline __inline uint32_t readl_async(const volatile void *addr)
uint32_t i = 0, read, tmp;
read = readl(addr);
uint32_t i = 0, read, tmp;
read = readl(addr);
- while (i++ < 10) {
+ do {
+ tmp = read;
tmp = readl(addr);
tmp = readl(addr);
- if (tmp == read)
- break;
- else
- read = tmp;
- }
+ i++;
+ } while (tmp != read && i <= 10);
return read;
}
return read;
}