X-Git-Url: http://pilppa.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=include%2Flinux%2Fhw_random.h;h=7244456e7e6573466f0534857bef00b8b1dbdad7;hb=174eef11a2c452cfa0c1e5bc6f759251fbc74d79;hp=21ea7610e1775ae4be3015f36f956d19f88e8b73;hpb=489244498ec99c949ecbd7105299066cff283dcd;p=linux-2.6-omap-h63xx.git diff --git a/include/linux/hw_random.h b/include/linux/hw_random.h index 21ea7610e17..7244456e7e6 100644 --- a/include/linux/hw_random.h +++ b/include/linux/hw_random.h @@ -11,7 +11,6 @@ #ifndef LINUX_HWRANDOM_H_ #define LINUX_HWRANDOM_H_ -#ifdef __KERNEL__ #include #include @@ -33,7 +32,7 @@ struct hwrng { const char *name; int (*init)(struct hwrng *rng); void (*cleanup)(struct hwrng *rng); - int (*data_present)(struct hwrng *rng); + int (*data_present)(struct hwrng *rng, int wait); int (*data_read)(struct hwrng *rng, u32 *data); unsigned long priv; @@ -46,5 +45,4 @@ extern int hwrng_register(struct hwrng *rng); /** Unregister a Hardware Random Number Generator driver. */ extern void hwrng_unregister(struct hwrng *rng); -#endif /* __KERNEL__ */ #endif /* LINUX_HWRANDOM_H_ */