Ver código fonte

hwrng: bcm63xx - fix device tree compilation

Adds missing include that resulted in implicit device tree functions errors.

Fixes: 7b651706712b ("hwrng: bcm63xx - add device tree support")
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Álvaro Fernández Rojas 9 anos atrás
pai
commit
47cd30608f
1 arquivos alterados com 1 adições e 0 exclusões
  1. 1 0
      drivers/char/hw_random/bcm63xx-rng.c

+ 1 - 0
drivers/char/hw_random/bcm63xx-rng.c

@@ -12,6 +12,7 @@
 #include <linux/clk.h>
 #include <linux/clk.h>
 #include <linux/platform_device.h>
 #include <linux/platform_device.h>
 #include <linux/hw_random.h>
 #include <linux/hw_random.h>
+#include <linux/of.h>
 
 
 #define RNG_CTRL			0x00
 #define RNG_CTRL			0x00
 #define RNG_EN				(1 << 0)
 #define RNG_EN				(1 << 0)