lkml.org 
[lkml]   [2020]   [Jan]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 4.19 082/639] staging: bcm2835-camera: fix module autoloading
    Date
    From: Stefan Wahren <stefan.wahren@i2se.com>

    [ Upstream commit 3a2c20024a2b47adbf514e7f3ab79342739c3926 ]

    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@i2se.com>
    Reviewed-by: Nicolas Saenz Julienne <nsaenzjulienne@suse.de>
    Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>
    ---
    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 068e5b9ab2323..edf25922b12d6 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.20.1


    \
     
     \ /
      Last update: 2020-01-24 12:04    [W:2.873 / U:7.516 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site