2016-04-03 12:18:25

by Álvaro Fernández Rojas

[permalink] [raw]
Subject: [PATCH] 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 <[email protected]>
---
drivers/char/hw_random/bcm63xx-rng.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/drivers/char/hw_random/bcm63xx-rng.c b/drivers/char/hw_random/bcm63xx-rng.c
index ca9c403..5132c9c 100644
--- a/drivers/char/hw_random/bcm63xx-rng.c
+++ b/drivers/char/hw_random/bcm63xx-rng.c
@@ -12,6 +12,7 @@
#include <linux/clk.h>
#include <linux/platform_device.h>
#include <linux/hw_random.h>
+#include <linux/of.h>

#define RNG_CTRL 0x00
#define RNG_EN (1 << 0)
--
2.1.4


2016-04-05 12:27:46

by Herbert Xu

[permalink] [raw]
Subject: Re: [PATCH] hwrng: bcm63xx - fix device tree compilation

On Sun, Apr 03, 2016 at 02:18:22PM +0200, ?lvaro Fern?ndez Rojas wrote:
> 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 <[email protected]>

Applied.
--
Email: Herbert Xu <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt