mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 10:00:17 +00:00
staging: vchiq_arm: Add a matching unregister call
[ Upstream commit5d9272e28a] All the registered children of vchiq have a corresponding call to platform_device_unregister except bcm2835_audio. Fix that. Fixes:25c7597af2("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> Link: https://lore.kernel.org/r/20200629150945.10720-9-nsaenzjulienne@suse.de Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
519fabb88d
commit
eaef1fec3f
@@ -2803,6 +2803,7 @@ failed_platform_init:
|
|||||||
|
|
||||||
static int vchiq_remove(struct platform_device *pdev)
|
static int vchiq_remove(struct platform_device *pdev)
|
||||||
{
|
{
|
||||||
|
platform_device_unregister(bcm2835_audio);
|
||||||
platform_device_unregister(bcm2835_camera);
|
platform_device_unregister(bcm2835_camera);
|
||||||
vchiq_debugfs_deinit();
|
vchiq_debugfs_deinit();
|
||||||
device_destroy(vchiq_class, vchiq_devid);
|
device_destroy(vchiq_class, vchiq_devid);
|
||||||
|
|||||||
Reference in New Issue
Block a user