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:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user