drivers: Guard dump_stack with DEBUG_KERNEL

Thanks to @tashar02 for pointing out these dump_stacks which were causing logspams

Signed-off-by: Wahid7852 <wahidzk0091@gmail.com>
This commit is contained in:
tashar02
2025-07-11 14:05:40 +05:30
committed by Ansh
parent 66be2bb2d1
commit 4da8b9dbc7
2 changed files with 2 additions and 1 deletions

View File

@@ -177,7 +177,6 @@ static void led_blink_setup(struct led_classdev *led_cdev,
void led_init_core(struct led_classdev *led_cdev)
{
INIT_WORK(&led_cdev->set_brightness_work, set_brightness_delayed);
setup_timer(&led_cdev->blink_timer, led_timer_function,
(unsigned long)led_cdev);
}

View File

@@ -183,7 +183,9 @@ struct cmdq_client *cmdq_mbox_create(struct device *dev, int index)
if (IS_ERR(client->chan)) {
cmdq_err("channel request fail:%d, idx:%d",
PTR_ERR(client->chan), index);
#ifdef CONFIG_DEBUG_KERNEL
dump_stack();
#endif
kfree(client);
return NULL;
}