Files
linux/drivers/char
Jonas Gorski 25086ac92a hwrng: bcm2835 - fix probe as platform device
[ Upstream commit 984798de67 ]

BCM63XX (MIPS) does not use device tree, so there cannot be any
of_device_id, causing the driver to fail on probe:

[    0.904564] bcm2835-rng: probe of bcm63xx-rng failed with error -22

Fix this by checking for match data only if we are probing from device
tree.

Fixes: 8705f24f7b ("hwrng: bcm2835 - Enable BCM2835 RNG to work on BCM63xx platforms")
Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-01-27 14:50:29 +01:00
..
2018-03-14 19:13:47 +01:00
2018-06-05 11:24:55 -07:00
2019-12-13 08:50:58 +01:00
2011-03-31 11:26:23 -03:00
2019-10-05 13:10:11 +02:00
2018-05-16 07:23:35 +02:00
2019-12-17 20:35:13 +01:00
2016-01-22 18:04:28 -05:00
2018-06-12 16:19:22 -07:00
2018-08-02 17:16:03 +02:00
2011-01-10 08:51:44 -08:00