Skip to content

Commit

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

While we're at it: fix a typo.

Signed-off-by: Bartosz Golaszewski <[email protected]>
Signed-off-by: Sekhar Nori <[email protected]>
  • Loading branch information
brgl authored and nsekhar committed Nov 23, 2016
1 parent 8e7223f commit 48c2833
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/bus/da8xx-mstpri.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
#include <linux/platform_device.h>
#include <linux/io.h>
#include <linux/regmap.h>
#include <linux/of_fdt.h>

/*
* REVISIT: Linux doesn't have a good framework for the kind of performance
Expand Down Expand Up @@ -226,8 +225,7 @@ static int da8xx_mstpri_probe(struct platform_device *pdev)

prio_list = da8xx_mstpri_get_board_prio();
if (!prio_list) {
dev_err(dev, "no master priotities defined for board '%s'\n",
of_flat_dt_get_machine_name());
dev_err(dev, "no master priorities defined for this board\n");
return -EINVAL;
}

Expand Down

0 comments on commit 48c2833

Please sign in to comment.