hwrng: via_rng - Fix asm constraints
authorHerbert Xu <herbert@gondor.apana.org.au>
Fri, 7 Jan 2011 03:48:57 +0000 (14:48 +1100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 7 Jan 2011 03:48:57 +0000 (14:48 +1100)
commit0735ac1f2551d9f9d356126aaf3b1110150918e6
tree4be8cf2b220bcd51053da2f67101f6ca4ceaf1aa
parentdffa18449a334cf436c1fabfb2fcf7d4240c994b
hwrng: via_rng - Fix asm constraints

The inline asm to invoke xstore did not specify the constraints
correctly.  In particular, dx/di should have been marked as output
registers as well as input as they're modified by xstore.

Thanks to Mario Holbe for creating this patch and testing it.

Tested-by: Mario 'BitKoenig' Holbe <Mario.Holbe@TU-Ilmenau.DE>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/char/hw_random/via-rng.c