From patchwork Wed Nov 23 13:39:59 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 9443279 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id E0B1F600BA for ; Wed, 23 Nov 2016 13:40:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CECF726212 for ; Wed, 23 Nov 2016 13:40:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C1B762621D; Wed, 23 Nov 2016 13:40:18 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 4774226212 for ; Wed, 23 Nov 2016 13:40:16 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 4FA3B6E87F; Wed, 23 Nov 2016 13:40:15 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wj0-x229.google.com (mail-wj0-x229.google.com [IPv6:2a00:1450:400c:c01::229]) by gabe.freedesktop.org (Postfix) with ESMTPS id B0E206E87E for ; Wed, 23 Nov 2016 13:40:06 +0000 (UTC) Received: by mail-wj0-x229.google.com with SMTP id v7so9691329wjy.2 for ; Wed, 23 Nov 2016 05:40:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=TBQCMDqHgNA8H0ok88a1YGm8kfIK0cAKzjFwEZYJ+hQ=; b=0GM7B3KklciYuCxYZSu2Oxgm35w6jZMVCfLcQd5PvDgN2opShI52kZhGdbfFsR4CtL vavy0UKkTptlMg7fNiPt+KfDbS6jkcEtuBIUqrU2fvRBz+0n+p21/yHMv9Vrr/0ykjJ9 Jk6FIvoFFrpUDVLGzfddQvwAXkx9Si3yICI786t1lS2vw5WajYDONWkQXur59qGz/MAU 91slbdazHDF2mO3LvzQ/aAiFK6lanV6QHYxlQeQ6Gnwd7IbCiQUDEZYieCmNvsFj+z+1 roq5m7J03zCHe1OG++R8KwdOmCdtbaVXWV+0pj8TsRDfljBt+7c9chqlVn1wrF9OWOgq jYqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=TBQCMDqHgNA8H0ok88a1YGm8kfIK0cAKzjFwEZYJ+hQ=; b=kZOGyJELb8kHI+vyQSI29fsHzk8g9bWTbyrId1HvbUxMy+OhIL3RNqatXIEyGuev73 SoJRo6MngpL5jSyPXvCMhISFQMxxd8Ja4dgbTAFCCTASFWlKn+lHJfPShHkUwHWxkmEi LJDthXWS9FCXIbbivMJH32nu9GiaRtRW9RpJLnZfLZG449G6X4m4GroX3BG1zXD70Hix BztZUcF4uz0x2e5PD+KvxCtQUmgeYqWITq9vJu9H0yDx5nUpXn7+cWoY1346ex/1Xrpb XknidXrzj/iNi/nuSB4U21yEMFOB/zxi+ScONa5J9JZvm3H40awVkKBlMUG7g5Xi6nV8 3mWw== X-Gm-Message-State: AKaTC01BDC4vxDs/wEYAWPotd8RBvBCzzluuYjqRBqKMuMa8F4S3Bg64wVCH0fJ2peQVkAgG X-Received: by 10.194.26.133 with SMTP id l5mr3374044wjg.4.1479908405115; Wed, 23 Nov 2016 05:40:05 -0800 (PST) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id 138sm2835918wms.20.2016.11.23.05.40.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 23 Nov 2016 05:40:04 -0800 (PST) From: Bartosz Golaszewski To: Kevin Hilman , Michael Turquette , Sekhar Nori , Rob Herring , Frank Rowand , Mark Rutland , Peter Ujfalusi , Russell King Subject: [PATCH v4 1/2] bus: da8xx-mstpri: drop the call to of_flat_dt_get_machine_name() Date: Wed, 23 Nov 2016 14:39:59 +0100 Message-Id: <1479908400-10136-2-git-send-email-bgolaszewski@baylibre.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1479908400-10136-1-git-send-email-bgolaszewski@baylibre.com> References: <1479908400-10136-1-git-send-email-bgolaszewski@baylibre.com> Cc: linux-devicetree , LKML , linux-drm , Bartosz Golaszewski , Tomi Valkeinen , Jyri Sarha , Sudeep Holla , Robin Murphy , arm-soc , Laurent Pinchart X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP 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 --- drivers/bus/da8xx-mstpri.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/bus/da8xx-mstpri.c b/drivers/bus/da8xx-mstpri.c index 85f0b53..063397f 100644 --- a/drivers/bus/da8xx-mstpri.c +++ b/drivers/bus/da8xx-mstpri.c @@ -16,7 +16,6 @@ #include #include #include -#include /* * REVISIT: Linux doesn't have a good framework for the kind of performance @@ -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; }