Skip to content

Commit

Permalink
memory: da8xx-ddrctl: drop the call to of_flat_dt_get_machine_name()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
brgl authored and nsekhar committed Nov 23, 2016
1 parent 48c2833 commit d0c7546
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/memory/da8xx-ddrctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
#include <linux/module.h>
#include <linux/of.h>
#include <linux/of_device.h>
#include <linux/of_fdt.h>
#include <linux/platform_device.h>
#include <linux/io.h>

Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit d0c7546

Please sign in to comment.