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

bus: da8xx-mstpri: 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.

While we're at it: fix a typo.

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
48c28337 8e7223fc

+1 -3
+1 -3
drivers/bus/da8xx-mstpri.c
··· 16 16 #include <linux/platform_device.h> 17 17 #include <linux/io.h> 18 18 #include <linux/regmap.h> 19 - #include <linux/of_fdt.h> 20 19 21 20 /* 22 21 * REVISIT: Linux doesn't have a good framework for the kind of performance ··· 225 226 226 227 prio_list = da8xx_mstpri_get_board_prio(); 227 228 if (!prio_list) { 228 - dev_err(dev, "no master priotities defined for board '%s'\n", 229 - of_flat_dt_get_machine_name()); 229 + dev_err(dev, "no master priorities defined for this board\n"); 230 230 return -EINVAL; 231 231 } 232 232