lkml.org 
[lkml]   [2020]   [Jun]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH v2 08/47] staging: vchiq_arm: Add a matching unregister call
    Date
    From: Phil Elwell <phil@raspberrypi.com>

    All the registered children of vchiq have a corresponding call to
    platform_device_unregister except bcm2835_audio. Fix that.

    Fixes: 25c7597af20d ("staging: vchiq_arm: Register a platform device for audio")

    Signed-off-by: Phil Elwell <phil@raspberrypi.com>
    Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
    Signed-off-by: Nicolas Saenz Julienne <nsaenzjulienne@suse.de>
    ---
    drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c | 1 +
    1 file changed, 1 insertion(+)

    diff --git a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c
    index 28ea8c3a4cba..355590f1e130 100644
    --- a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c
    +++ b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c
    @@ -2805,6 +2805,7 @@ static int vchiq_probe(struct platform_device *pdev)

    static int vchiq_remove(struct platform_device *pdev)
    {
    + platform_device_unregister(bcm2835_audio);
    platform_device_unregister(bcm2835_camera);
    vchiq_debugfs_deinit();
    device_destroy(vchiq_class, vchiq_devid);
    --
    2.27.0
    \
     
     \ /
      Last update: 2020-06-29 21:22    [W:3.686 / U:0.072 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site