From patchwork Tue Nov 22 10:41:50 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 9440777 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 8AAFA600BA for ; Tue, 22 Nov 2016 10:42:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6C995284D5 for ; Tue, 22 Nov 2016 10:42:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5F40F284D9; Tue, 22 Nov 2016 10:42:09 +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 00209284D5 for ; Tue, 22 Nov 2016 10:42:08 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 6D34C6E2B1; Tue, 22 Nov 2016 10:42:05 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wj0-x22e.google.com (mail-wj0-x22e.google.com [IPv6:2a00:1450:400c:c01::22e]) by gabe.freedesktop.org (Postfix) with ESMTPS id 1015A6E2B2 for ; Tue, 22 Nov 2016 10:42:01 +0000 (UTC) Received: by mail-wj0-x22e.google.com with SMTP id mp19so40415077wjc.1 for ; Tue, 22 Nov 2016 02:42:00 -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=os99jSayQP8VUwv+M3wVhekD/4vYQ6BBX/IFW3tvLec=; b=KKBJx+5dIIU3v7p+yuZyy5e1asFRcGzaj2zz8/MAxKbQ+8piGECYVrljZ2oLJpW/Ns HgLsWNpXUFiG3WtETiwYPud6z/tMg7A6z4BM1yRmAcO5M7fTWazaa23FnkHdRBgPFWnc sfpkP/v/mEeOkbuqQKy4RjrX00iGC6xpzjaosZaGwxRDokttexeIvfvja2izuKjagwly IPX0+oMj9gfiWKvLpb0z1+iognyH8xM30haRsxefOxjaGw28jAY1tqL8ew8h5fkGXQkt mTcd09C06u9UPhQFXGzH0EmGWuJ5Pd+LBWU6i/U4xtlwcrKvgRwSFcYD1FQA87cJDjE+ 1LgA== 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=os99jSayQP8VUwv+M3wVhekD/4vYQ6BBX/IFW3tvLec=; b=TlJiwQYmvettZJ/c+cf3GQlg3CdbiIqhlb/NF+mV76NbGur9iWkvuNGSNRKlWNEy+6 umx5Dcn4WwVN7K1+1qCBm1QESugHTnwpxnjVdaISWN3MuXCm/OCKCUhys3ZeXEqS5T51 IKIBNIS+jvBmxz8br1RGDeNlvQeGzX0YmfSGlOzv90Vp8VOM45O7+07e1NYcsBcFWVRl TJdgNkVq0q4f/9urHLrCIAyz/1lg5mOj71cvVItq/xToJo/iU7f5/YLx3lesqTPDBKCl 945jRPlthVQ0TjINqROA4vnvr9vUR+e3A79UIV1LbHuXiSKTUfVXCep6swnNHdsvRhxb /SCw== X-Gm-Message-State: AKaTC00gh8qB1AZh5H3F0jzWkISNL5OYooySgbFrqyy6P2jn83CxonyAjgkp4xjPGqpX+qI8 X-Received: by 10.194.43.73 with SMTP id u9mr13360580wjl.109.1479811319442; Tue, 22 Nov 2016 02:41:59 -0800 (PST) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id u81sm2228926wmu.10.2016.11.22.02.41.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 22 Nov 2016 02:41:59 -0800 (PST) From: Bartosz Golaszewski To: Kevin Hilman , Michael Turquette , Sekhar Nori , Rob Herring , Frank Rowand , Mark Rutland , Peter Ujfalusi , Russell King Subject: [PATCH 2/3] bus: da8xx-mstpri: drop the call to of_flat_dt_get_machine_name() Date: Tue, 22 Nov 2016 11:41:50 +0100 Message-Id: <1479811311-3080-3-git-send-email-bgolaszewski@baylibre.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1479811311-3080-1-git-send-email-bgolaszewski@baylibre.com> References: <1479811311-3080-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 use of_machine_get_compatible() instead of of_flat_dt_get_machine_name() when printing the error message. Signed-off-by: Bartosz Golaszewski --- drivers/bus/da8xx-mstpri.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/bus/da8xx-mstpri.c b/drivers/bus/da8xx-mstpri.c index 85f0b53..41cbbe6 100644 --- a/drivers/bus/da8xx-mstpri.c +++ b/drivers/bus/da8xx-mstpri.c @@ -227,7 +227,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()); + of_machine_get_compatible()); return -EINVAL; }