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:Stefan Wahren <stefan.wahren@i2se.com>
Loading
Please sign in to comment