]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
ASoC: Intel: catpt: Print error code if board-registration fails
authorCezary Rojewski <cezary.rojewski@intel.com>
Thu, 28 May 2026 08:34:44 +0000 (10:34 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 28 May 2026 18:12:50 +0000 (19:12 +0100)
Message alone without the code does not tell us much.

Signed-off-by: Cezary Rojewski <cezary.rojewski@intel.com>
Link: https://patch.msgid.link/20260528083444.1439233-4-cezary.rojewski@intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/catpt/device.c

index 6fe212f498c6a26d3e4ae79322dcb36e4a500383..b0a926db483c6cacbe4c65c5a637ce24a3a454f0 100644 (file)
@@ -154,7 +154,7 @@ static int catpt_register_board(struct catpt_dev *cdev)
                                        PLATFORM_DEVID_NONE,
                                        (const void *)mach, sizeof(*mach));
        if (IS_ERR(board)) {
-               dev_err(cdev->dev, "board register failed\n");
+               dev_err(cdev->dev, "register board failed: %ld\n", PTR_ERR(board));
                return PTR_ERR(board);
        }