Commit 8f1103e1 authored by Stefan Wahren's avatar Stefan Wahren Committed by popcornmix
Browse files

staging: bcm2835: Don't probe if no camera is detected



It is a waste of resources to load the camera driver in case there isn't
a camera actually connected to the Raspberry Pi. This solution also
avoids a NULL ptr dereference of mmal instance on driver unload.

Fixes: 7b3ad5ab ("staging: Import the BCM2835 MMAL-based V4L2 camera driver.")
Signed-off-by: default avatarStefan Wahren <stefan.wahren@i2se.com>
parent b7f9131a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment