Skip to content

Commit

Permalink
char: vcio: Fail probe if rpi_firmware is not found.
Browse files Browse the repository at this point in the history
Device Tree is now the only supported config mechanism, therefore
uncomment the block of code that fails the probe if the
firmware node can't be found.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org>
  • Loading branch information
6by9 authored and Phil Elwell committed May 28, 2019
1 parent 34123d8 commit 6593e43
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/char/broadcom/vcio.c
Expand Up @@ -126,10 +126,9 @@ static int __init vcio_init(void)

np = of_find_compatible_node(NULL, NULL,
"raspberrypi,bcm2835-firmware");
/* Uncomment this when we only boot with Device Tree
if (!of_device_is_available(np))
return -ENODEV;
*/

vcio.fw = rpi_firmware_get(np);
if (!vcio.fw)
return -ENODEV;
Expand Down

0 comments on commit 6593e43

Please sign in to comment.