From patchwork Tue Jun 19 21:40:54 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Herring X-Patchwork-Id: 139265 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp7951lji; Tue, 19 Jun 2018 14:41:04 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKnVIF/hfs2JhuOwTeKAnwGunuGkRkC9q0pzWidj7buCNMT5l0niNxF44gkUfioP09GaPOR X-Received: by 2002:a17:902:52ee:: with SMTP id a101-v6mr20493341pli.131.1529444464811; Tue, 19 Jun 2018 14:41:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529444464; cv=none; d=google.com; s=arc-20160816; b=m3MxK9ohBPD+61WuQCyStZppQWqx8tE6/15AEVycJ6HjVx4xWyiFDStoiDJgdNIJkS YwZtCXWavDqc1eVO74gQTXXTJlRhDHhA4Yl0m5TNayt7dU7AB8gIr0zFMd+/EuaVFOEJ YfUdtldDa6od5gklfnzqCReawlTyaQb0W5XJxhZw0j5dWrFb0ta1TdVR3NY6J78lsl3k gYcb4U/U3KhVhtO5ta2rV5e6+9vxSFzg1Z7zYgrBL/fVRQcbu1ee6og7Wb15H7bBTBrT gAfnfcs6FVPrc52HSiL/7XL3j1SbGSp3S88PsOqY4afHdXY+yxmzRLKDFoaz/xak1t3p oHjg== 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=9HjIrMkZl8ax2NvVRwbdVOwXcmC+TUrZHQKdns42YsE=; b=cpSvaDaHezqgBg8FW9wy+h0Kr+Yrrp8NOSjT5AXnu01QK8EsGNV69T6JP7g5xsxdiM H3Hey6zc0ziHq8CkDP7CWbxHgSCdxhya9D2pUjbKqEQAeou1ZUNjjgOMgrbKlEDWRCQ5 Irv+LxAFNw6Tn+9FlxRGvDE6qncmnxC5ivs8gEWgcI16I1gZxzLLYLDRj7fqUfccX2i0 ImSwcqwGjKT8UAHP83TNQnSuwJjWz+PbyT/ExH8XE5ASbNG16Vig3C0n4TDbiFSFR4uI sL1ts6buiLYfa+dWN5nwxwPwZ1CzsLLqQpAMW20Af0JSoNLAS1LTjIzpodVQ57ajrYPI b9Qw== 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.04; Tue, 19 Jun 2018 14:41:04 -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 S1757365AbeFSVlB (ORCPT + 30 others); Tue, 19 Jun 2018 17:41:01 -0400 Received: from mail-yb0-f193.google.com ([209.85.213.193]:36120 "EHLO mail-yb0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757240AbeFSVk5 (ORCPT ); Tue, 19 Jun 2018 17:40:57 -0400 Received: by mail-yb0-f193.google.com with SMTP id x128-v6so477718ybg.3 for ; Tue, 19 Jun 2018 14:40:57 -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=9HjIrMkZl8ax2NvVRwbdVOwXcmC+TUrZHQKdns42YsE=; b=N3XKzLRvnoGKqO6P/yMPpp6EUiK9iAIafEODqxBPncjA+EJmkHSBoV5gQD3cIaSBR5 0UKhFm0g8bbhRVAoJavOT1i+UmYPxzd3cEFo3NxmuOnO7cwkYwqBcDsK8GSDusK4o7mC 6sTvRUm2oJR/EmsSps4uGcTTUvNKvkxeFhKOTuSzkHLQtB7ZhjApw5GP3Ic1YJ8haudH f/ZhmnVu5DGWDlqpy03RDhQzB0iJNERlJJoIJwbHSdBDICJMjZJj6FSQkX2ZZywq+bgb 2G89pgMUSDbkrUMNMOu/ajn9Jw6XVDWCtoQQBT2sB9IpnkeCLPDZDIlIxcZAvgUs95MB 4Epg== X-Gm-Message-State: APt69E0g9cnTpqiz+WTQfCV4vhuz5j7jkNjuv06rmDenfKy2YEqQi8DY BRw4lLdVXYiyvMq/zwABO1WGxU0= X-Received: by 2002:a5b:487:: with SMTP id n7-v6mr9707112ybp.353.1529444456793; Tue, 19 Jun 2018 14:40:56 -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 p82-v6sm298451ywe.1.2018.06.19.14.40.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 19 Jun 2018 14:40:56 -0700 (PDT) From: Rob Herring To: Yoshinori Sato Cc: linux-kernel@vger.kernel.org, uclinux-h8-devel@lists.sourceforge.jp Subject: [PATCH] h8300: remove unnecessary of_platform_populate call Date: Tue, 19 Jun 2018 15:40:54 -0600 Message-Id: <20180619214054.19326-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_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: Yoshinori Sato Cc: uclinux-h8-devel@lists.sourceforge.jp Signed-off-by: Rob Herring --- arch/h8300/kernel/setup.c | 10 ---------- 1 file changed, 10 deletions(-) -- 2.17.1 diff --git a/arch/h8300/kernel/setup.c b/arch/h8300/kernel/setup.c index a4d0470c10a9..b2b51f75774e 100644 --- a/arch/h8300/kernel/setup.c +++ b/arch/h8300/kernel/setup.c @@ -23,7 +23,6 @@ #include #include #include -#include #include #include #include @@ -188,15 +187,6 @@ const struct seq_operations cpuinfo_op = { .show = show_cpuinfo, }; -static int __init device_probe(void) -{ - of_platform_populate(NULL, NULL, NULL, NULL); - - return 0; -} - -device_initcall(device_probe); - #if defined(CONFIG_CPU_H8300H) #define get_wait(base, addr) ({ \ int baddr; \