On Thu, Oct 25, 2018 at 4:30 PM Stefan Wahren <stefan.wahren@xxxxxxxx> wrote: > > In order to make the module bcm2835-camera load automatically, we need to > add a module alias. > > Fixes: 4bebb0312ea9 ("staging/bcm2835-camera: Set ourselves up as a platform driver.") > Signed-off-by: Stefan Wahren <stefan.wahren@xxxxxxxx> Reviewed-by: Peter Robinson <pbrobinson@xxxxxxxxx> Tested-by: Peter Robinson <pbrobinson@xxxxxxxxx> Tested with a v2 camera module and kernel module loads automatically as expected. > --- > drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c b/drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c > index d6fbef7..7d3222c 100644 > --- a/drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c > +++ b/drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c > @@ -47,6 +47,7 @@ MODULE_DESCRIPTION("Broadcom 2835 MMAL video capture"); > MODULE_AUTHOR("Vincent Sanders"); > MODULE_LICENSE("GPL"); > MODULE_VERSION(BM2835_MMAL_VERSION); > +MODULE_ALIAS("platform:bcm2835-camera"); > > int bcm2835_v4l2_debug; > module_param_named(debug, bcm2835_v4l2_debug, int, 0644); > -- > 2.7.4 > _______________________________________________ devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxx http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel