Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

memory: da8xx-ddrctl: drop the call to of_flat_dt_get_machine_name()

In order to avoid a section mismatch drop the call to
of_flat_dt_get_machine_name() when printing the error message.

Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>

authored by

Bartosz Golaszewski and committed by
Sekhar Nori
d0c7546f 48c28337

+1 -3
+1 -3
drivers/memory/da8xx-ddrctl.c
··· 14 14 #include <linux/module.h> 15 15 #include <linux/of.h> 16 16 #include <linux/of_device.h> 17 - #include <linux/of_fdt.h> 18 17 #include <linux/platform_device.h> 19 18 #include <linux/io.h> 20 19 ··· 116 117 117 118 setting = da8xx_ddrctl_get_board_settings(); 118 119 if (!setting) { 119 - dev_err(dev, "no settings for board '%s'\n", 120 - of_flat_dt_get_machine_name()); 120 + dev_err(dev, "no settings defined for this board\n"); 121 121 return -EINVAL; 122 122 } 123 123