From: Bartosz Golaszewski Date: Wed, 23 Nov 2016 13:40:00 +0000 (+0100) Subject: memory: da8xx-ddrctl: drop the call to of_flat_dt_get_machine_name() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d0c7546f6257b4680a760e3fd0dff8a7cc4600ff;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Sekhar Nori --- diff --git a/drivers/memory/da8xx-ddrctl.c b/drivers/memory/da8xx-ddrctl.c index a20e7bbbcbe0..030afbe29d0c 100644 --- a/drivers/memory/da8xx-ddrctl.c +++ b/drivers/memory/da8xx-ddrctl.c @@ -14,7 +14,6 @@ #include #include #include -#include #include #include @@ -117,8 +116,7 @@ static int da8xx_ddrctl_probe(struct platform_device *pdev) setting = da8xx_ddrctl_get_board_settings(); if (!setting) { - dev_err(dev, "no settings for board '%s'\n", - of_flat_dt_get_machine_name()); + dev_err(dev, "no settings defined for this board\n"); return -EINVAL; }