From patchwork Tue Jun 19 21:41:34 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Herring X-Patchwork-Id: 139266 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp8405lji; Tue, 19 Jun 2018 14:41:44 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIyjQhnNslp4X5xN4wNHXyI1cpcONBSM/ZK1g4f7IMKtfvQKcqjw9FDiSTb7wJOeD6tV0Jl X-Received: by 2002:a63:3c07:: with SMTP id j7-v6mr16183124pga.440.1529444504023; Tue, 19 Jun 2018 14:41:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529444504; cv=none; d=google.com; s=arc-20160816; b=nHiP1lWEz/teyKLkRxnRTi3Fp5Pjn1KtLKRg4tWXZxbSmYoYk9eFtTT79z/5EI3IGC KlcAlsBqzUfR9h8zZGF75Snp02ILReP7rlo4q/8jfDU8qUUNEfG+ShD0Y+CDskd3N+N5 RVVjwuEEqIGOVDxtpDgZCxJLX1sQgmO6llFSCgdZw4kxKrrj9x+IMl08lbOMJ3rsp92x 3yqJC0yGXHr8i+GcmeOF9yxk83UivuG4aGO08/fM9XZ3N4ZVtuzOYUOF2Ua89E1jvBLZ jSMDPfjh5+iLjvYr/OCHxvyFdjtQ5vrcZFBLxUJ7G1fUxSyzQtMjvnYfYQlzj/5ZnmvH EnJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=KBDgrFD+UKT4o/0FIiF9qSMpuwUhTvwU/R2u1sd9GSY=; b=WSIf4vgdDRTtxnPpjYnr00zo8f/pDp+7UEt6Tp5FPxsnWFBVwTD7ay7UpsiWh2qMVd jO/Pvw2Ycj/zWp6uqPPnrlCFQbGVCHn6Ju9QeGvH0ogFVokmP9S1ylSZH8T27dU3WABM wVOlUI7xezUyBKePXU8PTuO5LCJdQO1HrluWS+P0yYHG9mdZ1vXGmBfchkmUdYMhuyk+ dBOMLyVg5Mk1z6ImXHJdxmSd3hRjqzPUwdnehiR3YA62vm225Wn2+gPk8IdCUo/GgiSP TJP1cShT1qCM9IbqglxWk5a7pwDExMHdJ44kZOTRsdrRartzeUOWAIiJmzInay63W+Vt GMPw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j5-v6si672162pfb.244.2018.06.19.14.41.40; Tue, 19 Jun 2018 14:41:44 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S967284AbeFSVli (ORCPT + 30 others); Tue, 19 Jun 2018 17:41:38 -0400 Received: from mail-yw0-f196.google.com ([209.85.161.196]:46142 "EHLO mail-yw0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755490AbeFSVlh (ORCPT ); Tue, 19 Jun 2018 17:41:37 -0400 Received: by mail-yw0-f196.google.com with SMTP id v197-v6so433359ywc.13 for ; Tue, 19 Jun 2018 14:41:36 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=KBDgrFD+UKT4o/0FIiF9qSMpuwUhTvwU/R2u1sd9GSY=; b=HbZQFJEYRvvHN9SkG79KZ9r+Mg8buNiFmaPV4Ez6V4DmWIcF4iWP//7tqpx98i3VhD sXXP+MWFsIa9+HveUaa4pQX85xXgJ6hfYTFWjOzESrvx4EBKvfUKGN9V/kKdFEsuXTIy nfvOzSdazc//4bfU95sZEt/aqExmlslar1SOmlC/m0JvMFIwvvYvoSSTXcMhZU5Eo1Yp Yv+cfmuoOlUqr/1F4cJWQpyUJLA9Bf/nPyX30PdcUN5jP7Z5Cau18W4FdbwWfxMWLnBy 2iXU9kTIkjDtjcYWi5jm93Oi9HS1M0knt8RGIXHt3YWIHbu2372WLzS5tDydCI4FoQGS xO+w== X-Gm-Message-State: APt69E1MZGyCvu+fOn97rIzsIZhX0Q7uprAO2Z6t8HR1QEX9AfxwhlOs scF4R3VUTgB3LD1PKCc1AQ== X-Received: by 2002:a81:af55:: with SMTP id x21-v6mr8838308ywj.428.1529444496272; Tue, 19 Jun 2018 14:41:36 -0700 (PDT) Received: from localhost.localdomain (24-223-123-72.static.usa-companies.net. [24.223.123.72]) by smtp.googlemail.com with ESMTPSA id z123-v6sm291281ywd.85.2018.06.19.14.41.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 19 Jun 2018 14:41:35 -0700 (PDT) From: Rob Herring To: Palmer Dabbelt Cc: linux-kernel@vger.kernel.org, Albert Ou , linux-riscv@lists.infradead.org Subject: [PATCH] riscv: remove unnecessary of_platform_populate call Date: Tue, 19 Jun 2018 15:41:34 -0600 Message-Id: <20180619214134.20130-1-robh@kernel.org> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The DT core will call of_platform_default_populate, so it is not necessary for arch specific code to call it unless there are custom match entries, auxdata or parent device. Neither of those apply here, so remove the call. Cc: Palmer Dabbelt Cc: Albert Ou Cc: linux-riscv@lists.infradead.org Signed-off-by: Rob Herring --- arch/riscv/kernel/setup.c | 5 ----- 1 file changed, 5 deletions(-) -- 2.17.1 diff --git a/arch/riscv/kernel/setup.c b/arch/riscv/kernel/setup.c index ee44a48faf79..f0d2070866d4 100644 --- a/arch/riscv/kernel/setup.c +++ b/arch/riscv/kernel/setup.c @@ -220,8 +220,3 @@ void __init setup_arch(char **cmdline_p) riscv_fill_hwcap(); } -static int __init riscv_device_init(void) -{ - return of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); -} -subsys_initcall_sync(riscv_device_init);