Commit 63f4dbb1 authored by Stefan Wahren's avatar Stefan Wahren Committed by Greg Kroah-Hartman
Browse files

staging: vchiq_arm: Register debugfs after cdev



The commit 2a4d15a4 ("staging: vchiq: Refactor vchiq cdev code")
moved the debugfs directory creation before vchiq character device
registration. In case the latter fails, the debugfs directory won't
be cleaned up.

Fixes: 2a4d15a4 ("staging: vchiq: Refactor vchiq cdev code")
Signed-off-by: default avatarStefan Wahren <wahrenst@gmx.net>
Link: https://lore.kernel.org/r/20250309125014.37166-2-wahrenst@gmx.net


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 96622d58
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1386,8 +1386,6 @@ static int vchiq_probe(struct platform_device *pdev)
		return ret;
	}

	vchiq_debugfs_init(&mgmt->state);

	dev_dbg(&pdev->dev, "arm: platform initialised - version %d (min %d)\n",
		VCHIQ_VERSION, VCHIQ_VERSION_MIN);

@@ -1401,6 +1399,8 @@ static int vchiq_probe(struct platform_device *pdev)
		return ret;
	}

	vchiq_debugfs_init(&mgmt->state);

	bcm2835_audio = vchiq_device_register(&pdev->dev, "bcm2835-audio");
	bcm2835_camera = vchiq_device_register(&pdev->dev, "bcm2835-camera");