From patchwork Tue Jun 19 21:47:06 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Herring X-Patchwork-Id: 139272 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp14182lji; Tue, 19 Jun 2018 14:48:39 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJEO59RcCEYrpfnJMcsFJyWBdNvZcxPaxSk8JDZLSnLxkLj7cANkIjp38gg3yutoM2lSh5g X-Received: by 2002:a17:902:2809:: with SMTP id e9-v6mr20456648plb.89.1529444919713; Tue, 19 Jun 2018 14:48:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529444919; cv=none; d=google.com; s=arc-20160816; b=EmvlZ8QDt0UeRL4GUNAu05Jg9xqqFcVIFbqTUMG6OMBrcYB/QzBwN5lTM2Uzp65ev2 0dnQE5M1bErPRJ2nZiOCJmD3Opsws+fc01tQrfrxualrTZwXnaepN2o4Ac8UGQuStMqe bklmP6QKs5yuuotp3eL0o5tTZKKnbpP643NwRxEYU+PbH7BXxJ4CKR++8gOoJ6rdgKOZ FtZsPff4wtvsSXQYOnKA5gyO4BaqyDuQrPQEanuwQDa73DuSEE9YZdzJiCkqEtTQq414 5CVjWEYQ+H8S5RtbisUzRaN+u/1e/GrSGlY63IEsl7VjsD6YljQLv6n9roykIHjgapzo FFeQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=LT9TrtiRXCl2nVaT1mJwH3wuwflNX6wnuE0hTLu4Q3Y=; b=UKyJnSzhAwFvf0yno+/j9kA2PtJKCzBPV7Gzpz+kI5eRK8a8IFbAikMvbXgiRhBdjG TNbKkmKu8w3MnHQeGEJ/clmQOTOBxrc0vV6Yh0Z4CZ3MFnEv5QyAlCBIvC7AXkJ0sThG tHUOzsFnuz/9Zo9FahhKMMBxaXaqhJJJSw7udwVhZlVYH1f3G7W9tm/0RU/rOsNwO6Cg SMOCwAAwu6Jiwn5VPhbMJhs1CEy5Nlk4KuD2No29WEIW1NlrE6MH5FC+39aqHclEHakm sgFPVg8db/N3psDr1SmTc/XpY2fvEZDEI+5AntDCzPxfBVklGuASq1xbh+klOU83bM1b 72cA== 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 a39-v6si679000pla.510.2018.06.19.14.48.39; Tue, 19 Jun 2018 14:48:39 -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 S967410AbeFSVsh (ORCPT + 30 others); Tue, 19 Jun 2018 17:48:37 -0400 Received: from mail-yb0-f193.google.com ([209.85.213.193]:44162 "EHLO mail-yb0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S967231AbeFSVrP (ORCPT ); Tue, 19 Jun 2018 17:47:15 -0400 Received: by mail-yb0-f193.google.com with SMTP id w74-v6so471341ybe.11 for ; Tue, 19 Jun 2018 14:47:14 -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:in-reply-to :references; bh=LT9TrtiRXCl2nVaT1mJwH3wuwflNX6wnuE0hTLu4Q3Y=; b=dUlpCQuxHXFjZcsDu8/cag3/erz5FrWeDeFV/tlaSFcHIoLqnuv+/3o6oGaq0cJ5AS HQhUcrae+pTmCH5OiFfC67//a2a1Xd7CN8uu0KjBHlXTfRkKdg+nLr/GzDzESS+9cazA duOIDxKYQvw2AYtT69hCmvPPp+KFV62rRfRiN0gTbU+DlvimpCadziuGPv74cJzA2YoL 2MmRFVr2/AzqLeRre7q/8p8TPa0UTX/M8QzjPkms3/qTRrMP+2Xyp4MHX8/KxS/0zfKX OBhdoPKV4Zj67DBGHf3TEvsHxT4VaHh7RWt/5Oa98oCY1l0Gp0WDgMGXePYO2zdDpZcK Hy8w== X-Gm-Message-State: APt69E0TNQLqwr5cCXFVflFPzMtYHap7VAbfQ4FMJiuChyUqmb3Q5pDB peN9gxRDGpwaDOdf1f9EZw== X-Received: by 2002:a25:b10d:: with SMTP id g13-v6mr7125131ybj.169.1529444834496; Tue, 19 Jun 2018 14:47:14 -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 x66-v6sm333612ywc.76.2018.06.19.14.47.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 19 Jun 2018 14:47:13 -0700 (PDT) From: Rob Herring To: Ralf Baechle , Paul Burton , James Hogan Cc: linux-kernel@vger.kernel.org, linux-mips@linux-mips.org Subject: [PATCH 1/5] MIPS: octeon: use of_platform_populate to probe devices Date: Tue, 19 Jun 2018 15:47:06 -0600 Message-Id: <20180619214710.22066-2-robh@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180619214710.22066-1-robh@kernel.org> References: <20180619214710.22066-1-robh@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org of_platform_bus_probe is deprecated in favor of of_platform_populate. of_platform_populate is stricter requiring compatible properties for matching rather than name or type. Octeon uses compatible strings for matching, so convert it to of_platform_populate. Cc: Ralf Baechle Cc: Paul Burton Cc: James Hogan Cc: linux-mips@linux-mips.org Signed-off-by: Rob Herring --- arch/mips/cavium-octeon/octeon-platform.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.1 diff --git a/arch/mips/cavium-octeon/octeon-platform.c b/arch/mips/cavium-octeon/octeon-platform.c index 8505db478904..2940e9cc3a04 100644 --- a/arch/mips/cavium-octeon/octeon-platform.c +++ b/arch/mips/cavium-octeon/octeon-platform.c @@ -1067,6 +1067,6 @@ int __init octeon_prune_device_tree(void) static int __init octeon_publish_devices(void) { - return of_platform_bus_probe(NULL, octeon_ids, NULL); + return of_platform_populate(NULL, octeon_ids, NULL, NULL); } arch_initcall(octeon_publish_devices); From patchwork Tue Jun 19 21:47:07 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Herring X-Patchwork-Id: 139270 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp13275lji; Tue, 19 Jun 2018 14:47:36 -0700 (PDT) X-Google-Smtp-Source: ADUXVKK0VlwuGraP9lBTh6EALzT4tEz2WzU/NqAsP9bCWMM8nui3iD2sYRGNgMGtasbiXfY3nLE5 X-Received: by 2002:a63:ba4b:: with SMTP id l11-v6mr15866313pgu.295.1529444856661; Tue, 19 Jun 2018 14:47:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529444856; cv=none; d=google.com; s=arc-20160816; b=k8dIrkF/0AVl4EmYs7oAfz6MUkKN+wBA4YHp646W6s7wdpxVdGHQJEixMFXtQlSjwB SyAW0AsVnPgkBcMk16uTKvlkz4qlOFTqhMYrstM4kgosDFB4Jz1iv+JqHnfkQaey9FZs d8dZh6ukYtMXthNUqssesiSuXB4GxeCdoRkJ/a+NRAQDKPDiYBBk5fQsS5BhkdCuTJkQ GVSC5WH/teWFt0CmmwhTmfi5/mInpsNqopl2MenMlA+TwlArLnT+oid828l+hqQnyYyd ZMzlZuU0MizTj66pziHsqSrU6IkOaJ7CkCM2Y/ZnDoV0diuOi8PLvJxVc6OCElFU5ixW +4Dg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=LC5sN3D4i3c7rmr3NVM7+l7w8yoxwsjrueH4YGTx6Bw=; b=QoNnYsxyjb7K9cZENwe0ewR7bbALCr8qu94QjDoNIkg3vucBijMwzxR83GKlvhzQx+ 2rjMYEofFpaXXENLg4HehQ5wxuJZ9r0/b7SbEdHLpVknpymR5l6mDrZ5+SGY5S8JlcFk Sw6+cW/I46jJsV5VzWxrsJ6yGDBq2eK4DwryQu6OCpad2iKl0h4l5XKJGff2suagCIdD MWDH+dBy/7hryR+pQ/uGWwU01F4Pjc4h+2o3alOhsqvBfAXYcS/4y2M7euCGZiSmfzyQ 7Qy6hbf5/RWdb8LCaGzvyoCJShS9YUXTrmtGmZ8aWrwPVQlkw30FLc9kqdNhOMn5JT7F Qp4A== 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 u13-v6si614814pfh.282.2018.06.19.14.47.33; Tue, 19 Jun 2018 14:47:36 -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 S967381AbeFSVrb (ORCPT + 30 others); Tue, 19 Jun 2018 17:47:31 -0400 Received: from mail-yb0-f195.google.com ([209.85.213.195]:33896 "EHLO mail-yb0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S967271AbeFSVrQ (ORCPT ); Tue, 19 Jun 2018 17:47:16 -0400 Received: by mail-yb0-f195.google.com with SMTP id n23-v6so489233ybg.1 for ; Tue, 19 Jun 2018 14:47:16 -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:in-reply-to :references; bh=LC5sN3D4i3c7rmr3NVM7+l7w8yoxwsjrueH4YGTx6Bw=; b=H9CxYwriiz2yw44N/s2dI6YfotgSIbxLsoU/XKzE+cw8e8rh6TrXriBpYu0AnMEr9X n+qknZwLHIsgWZQZJ1DZPO+8tRlv50NTPusuLaeFP6HcZ03eYgLl9koEPGDVaOQwiBnn QTde5sGNDxCW77SSzGPHF9nJhPfTtYPfNAVwpOTBQZsi1xi/iSKChkTKtHm1SferUmdf ngNWzPnfwmjALbnSGw1wlFYHjBYJ2E0WaE39Pn3jyoOwYxXi9YLeHzj7twnl/YlFcmPy xsaFzGSDF/hv8r0MWCAJMAoWqPXACBBUsaRCDerYXPXDTkKmN+vay1301+h9oD6kWt1h VS1Q== X-Gm-Message-State: APt69E0QSDVJwjxX/xh3iNzYNTDZbeAtIg1i4NV4IsQf0xA1tQcR+X7l piGVocrX+82ETIjZJXsqaA== X-Received: by 2002:a25:7e05:: with SMTP id z5-v6mr9708903ybc.442.1529444835927; Tue, 19 Jun 2018 14:47:15 -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 x66-v6sm333612ywc.76.2018.06.19.14.47.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 19 Jun 2018 14:47:15 -0700 (PDT) From: Rob Herring To: Ralf Baechle , Paul Burton , James Hogan Cc: linux-kernel@vger.kernel.org, linux-mips@linux-mips.org Subject: [PATCH 2/5] MIPS: netlogic: remove unnecessary of_platform_bus_probe call Date: Tue, 19 Jun 2018 15:47:07 -0600 Message-Id: <20180619214710.22066-3-robh@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180619214710.22066-1-robh@kernel.org> References: <20180619214710.22066-1-robh@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The DT core code will probe "simple-bus" by default, so remove the Netlogic specific call. The probing of simple-bus happens at arch_initcall_sync, so the call being removed here is already a nop. Cc: Ralf Baechle Cc: Paul Burton Cc: James Hogan Cc: linux-mips@linux-mips.org Signed-off-by: Rob Herring --- arch/mips/netlogic/xlp/dt.c | 14 -------------- 1 file changed, 14 deletions(-) -- 2.17.1 diff --git a/arch/mips/netlogic/xlp/dt.c b/arch/mips/netlogic/xlp/dt.c index 856a6e6d296e..b5ba83f4c646 100644 --- a/arch/mips/netlogic/xlp/dt.c +++ b/arch/mips/netlogic/xlp/dt.c @@ -93,17 +93,3 @@ void __init device_tree_init(void) { unflatten_and_copy_device_tree(); } - -static struct of_device_id __initdata xlp_ids[] = { - { .compatible = "simple-bus", }, - {}, -}; - -int __init xlp8xx_ds_publish_devices(void) -{ - if (!of_have_populated_dt()) - return 0; - return of_platform_bus_probe(NULL, xlp_ids, NULL); -} - -device_initcall(xlp8xx_ds_publish_devices); From patchwork Tue Jun 19 21:47:08 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Herring X-Patchwork-Id: 139268 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp13172lji; Tue, 19 Jun 2018 14:47:27 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLJkvctfxcA357mD5DIOUnBynAjL2mqnUBLnPy3N61Dk1Yh/aIyX3DUJKdxoSmElesrT0Zr X-Received: by 2002:a17:902:6b86:: with SMTP id p6-v6mr20800056plk.75.1529444847802; Tue, 19 Jun 2018 14:47:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529444847; cv=none; d=google.com; s=arc-20160816; b=0k5LKTI/FVGZIkHImBnYol935+pv1JzwpK0CtaoHQQ7MORhSH64GUzVAfrt+R+5vR/ h6vijU+F0zN2pizMdofKf86sKLcYPazGVgIrshvDlp6P0Sy7IEhyxPo0Deuw3TxH/wl3 4XmvBSp3+Hpov6c7dH9FjCInw5ki2jkTGyJAMvijdC/SdzHoQmwH/EwX9cbw8yji4LhZ fEjOw72nDjGv3Jvnswsa1TciKI3dsICM+YC1AgoJErtlYWUiWp7KxmfhYPHkBbvrDxHh vGqUl5nONMsU90HgwxKpkmrFmQn5UXSq46cQRjXvgpMIuk8qhWjFbzsvf82912s2CzVx 0bGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=wLVnH7vIuGi0xSrrr/f9kAJNZm3q+kno8SThjP7bEPk=; b=Y65IaGBf0ZoC933QMSqzSxnGyiRP+8ieQQjB6y+FPilwwiXnglzNJQSPd/PbMkygz+ 0bRXOdmrmwbmWyKbLMBAhGY1w9Vljruc64cSDjz82VmHFkzCNXn/GdDaP8DtlMu2fUv1 vxY9MwgXUR1NajWCdHYBTxvvtpJzN9d3H2YHvr68YDIMBWYN1aojMonSW836G8maoIch EMa+YFAN7Eh9K5evWleN7LVx7fjOdXZjW6d8jfjxkaiGAk8qkpBRO7o6blx6F3xQwFfY 6Wc9IpdiAF49MJ2COoKmeWsgEpRoz0lwv3LjCydFJ0hzLTlbbkTZJ1Mpox7SjNqXy8uh VznQ== 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 u13-v6si614814pfh.282.2018.06.19.14.47.26; Tue, 19 Jun 2018 14:47:27 -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 S967336AbeFSVrX (ORCPT + 30 others); Tue, 19 Jun 2018 17:47:23 -0400 Received: from mail-yw0-f196.google.com ([209.85.161.196]:38357 "EHLO mail-yw0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964888AbeFSVrS (ORCPT ); Tue, 19 Jun 2018 17:47:18 -0400 Received: by mail-yw0-f196.google.com with SMTP id w13-v6so450949ywa.5 for ; Tue, 19 Jun 2018 14:47:17 -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:in-reply-to :references; bh=wLVnH7vIuGi0xSrrr/f9kAJNZm3q+kno8SThjP7bEPk=; b=rJI9EiVbtyuNC+1y+z/Bw5lvq+1OcNqR8eyCPq8XtrRPYlyinHJo6F7RGquE4jhBKS cKgpMqEnKCwEP2jIy2LbZDKQ4a1aI5va2TDKukJfQEgBux0wSlWQrWgtg/dOMfONnJLQ q6TLtauvajHgFmcw81kM/7w1Jdd7Zep1KJkIsvXraI727y9YzcPECti2qoA2Rg4kJib5 JHBnb5Fs5ZD13Fqwgn8XrFH3JQYnbqXviNzCto608NPrZvyVfCy8sfPVwd6PPUGjmFkN Pav0V7ZIOBiHzx1c94HBaQk99cx9okbA2zhtFs8ZCwNsePrGv5W8KK35SgPUJsWnDXbu ZgQg== X-Gm-Message-State: APt69E2A9mrNrhV/pmzo/9lNBUy3JKt1IJi6mcUcj6vBo1FZ+gGoylEm VDxQkKQV8Oex6oTLCRxA/A== X-Received: by 2002:a0d:c905:: with SMTP id l5-v6mr9331254ywd.308.1529444837527; Tue, 19 Jun 2018 14:47:17 -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 x66-v6sm333612ywc.76.2018.06.19.14.47.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 19 Jun 2018 14:47:16 -0700 (PDT) From: Rob Herring To: Ralf Baechle , Paul Burton , James Hogan Cc: linux-kernel@vger.kernel.org, linux-mips@linux-mips.org, Kevin Cernekee , Florian Fainelli Subject: [PATCH 3/5] MIPS: bmips: remove unnecessary call to register "simple-bus" Date: Tue, 19 Jun 2018 15:47:08 -0600 Message-Id: <20180619214710.22066-4-robh@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180619214710.22066-1-robh@kernel.org> References: <20180619214710.22066-1-robh@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The DT core will register "simple-bus" by default, so it is not necessary for arch specific code to do so unless there are custom match entries, auxdata or parent device. Neither of those apply here, so remove the call. Cc: Kevin Cernekee Cc: Florian Fainelli Cc: Ralf Baechle Cc: Paul Burton Cc: James Hogan Cc: linux-mips@linux-mips.org Signed-off-by: Rob Herring --- arch/mips/bmips/setup.c | 7 ------- 1 file changed, 7 deletions(-) -- 2.17.1 diff --git a/arch/mips/bmips/setup.c b/arch/mips/bmips/setup.c index 3b6f687f177c..231fc5ce375e 100644 --- a/arch/mips/bmips/setup.c +++ b/arch/mips/bmips/setup.c @@ -202,13 +202,6 @@ void __init device_tree_init(void) of_node_put(np); } -int __init plat_of_setup(void) -{ - return __dt_register_buses("simple-bus", NULL); -} - -arch_initcall(plat_of_setup); - static int __init plat_dev_init(void) { of_clk_init(NULL); From patchwork Tue Jun 19 21:47:09 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Herring X-Patchwork-Id: 139269 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp13221lji; Tue, 19 Jun 2018 14:47:31 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIJLvrbF+CbQKeQ2u5Wc5kEQbE9yNtAMJIlevarcBF28HlenOwghitDYPPYsO3qzPz3+VZy X-Received: by 2002:a17:902:563:: with SMTP id 90-v6mr20587422plf.327.1529444851795; Tue, 19 Jun 2018 14:47:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529444851; cv=none; d=google.com; s=arc-20160816; b=GDOEjFES30dsH8s9SA6KYCPJIRKWN1KuhYjHw6Fod+GinXxzBIUWVo9Jd4MORNLHFT gCGcWLx2jv+AGnl45OHzZgnqKtoC9cQJKJBO2kvYw5wh+fwXZb761EGglNKsOD3dAOyM OcR+dxgvdPSM/w1Q6IEB98NpkAe0HFEe8p7tAKM0ue1SGWOc0VdY+YQ9fPfRJnVmguaB bFrqK/t/1VfsCgJRNY08Z6+8QbX1l8ePz6shQ5tZBmCvFwv4iRa3eLbZ9ZF9XyxdvMt8 TdZ5cv3b3mWcdgIfytzt5pyl+rhS4vOa+0SI0SIOUF4Wf3vORl2B3IBm7rBSCEiLQfzX 7XSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=8RXql62/dQvZpkpAbxhcxM+PugjdkCOIwRwB4Nmmg1k=; b=jamfWeRCmsbi5N68Luwpfus4IHQo06nFHgAhrYuWTuNCWFzeQbGe9vhrFklR4WkHzj pXpxA/slQrypTeYNtmw0wnjMbznadF5D3pXRlGMxkKeveQBrlBIqnaskMrRLRF23MjpL evZXdGpE15sPbCMnzQ5NGmZKJtNNgjwjLy7oQfd/HjQ4D4Sn4PwUnfHkC7KPQOfHuKUv CpZQaFJUVOkOYBARrD1TOncNjEM1f3jTO2VPbo48pfVfggWVlo13WoUOKGZB2vDBp3ch 66jVy1vWL8Qvdz4vugHboiiyIu2SUmsAFPnUT3+Fd9rpnu3zAYrroVXFrf+iJgV7xIkK XxeQ== 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 u13-v6si614814pfh.282.2018.06.19.14.47.30; Tue, 19 Jun 2018 14:47:31 -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 S967361AbeFSVr1 (ORCPT + 30 others); Tue, 19 Jun 2018 17:47:27 -0400 Received: from mail-yw0-f195.google.com ([209.85.161.195]:43771 "EHLO mail-yw0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S967294AbeFSVrT (ORCPT ); Tue, 19 Jun 2018 17:47:19 -0400 Received: by mail-yw0-f195.google.com with SMTP id r19-v6so441973ywc.10 for ; Tue, 19 Jun 2018 14:47:19 -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:in-reply-to :references; bh=8RXql62/dQvZpkpAbxhcxM+PugjdkCOIwRwB4Nmmg1k=; b=NC3yEbjMJB2p4qlK/Cq2PvVJJ5uv2xpriy+LxF7Em2Mh6KTiz7xbOru/V7WpP3BmeN HG2Cl75b4MnbTgqlriVWSzICcA41fhhmx4QoHtGz6EZAepbe7cfw0AlwXjfJ9GjJzMFl uobs+b1+TmiWgZ8H4ZZOS2yjSuZnR0g6iUKN58ltO8KzwIsKWuud0jBy665AjWOOf+Kr mb9/Ewy2ZsbybveVK+eOsHuPTrKdRTD7gbz3JrzSvC8ama/nbIqyclePLUTh+uP/V9rU fxJ5SNM0dPJ3ybcN45YkOUvHBN0TJF6hyoK7wydwgTw1ovoid2gnzONtnD4rIGzOjUnH LuRg== X-Gm-Message-State: APt69E0r2JW6xzFBv74SuOfsRE0vN1PlTbGUGGHMnVKU65U5INhiVj+U +oi4Ked4l1cx5YC9l8q/xw== X-Received: by 2002:a81:ad44:: with SMTP id l4-v6mr9285131ywk.68.1529444838893; Tue, 19 Jun 2018 14:47:18 -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 x66-v6sm333612ywc.76.2018.06.19.14.47.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 19 Jun 2018 14:47:18 -0700 (PDT) From: Rob Herring To: Ralf Baechle , Paul Burton , James Hogan Cc: linux-kernel@vger.kernel.org, linux-mips@linux-mips.org Subject: [PATCH 4/5] MIPS: generic: remove unnecessary of_platform_populate call Date: Tue, 19 Jun 2018 15:47:09 -0600 Message-Id: <20180619214710.22066-5-robh@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180619214710.22066-1-robh@kernel.org> References: <20180619214710.22066-1-robh@kernel.org> 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: Paul Burton Cc: Ralf Baechle Cc: James Hogan Cc: linux-mips@linux-mips.org Signed-off-by: Rob Herring --- arch/mips/generic/init.c | 13 ------------- 1 file changed, 13 deletions(-) -- 2.17.1 diff --git a/arch/mips/generic/init.c b/arch/mips/generic/init.c index 5ba6fcc26fa7..07ec08462d70 100644 --- a/arch/mips/generic/init.c +++ b/arch/mips/generic/init.c @@ -14,7 +14,6 @@ #include #include #include -#include #include #include @@ -208,18 +207,6 @@ void __init arch_init_irq(void) irqchip_init(); } -static int __init publish_devices(void) -{ - if (!of_have_populated_dt()) - panic("Device-tree not present"); - - if (of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL)) - panic("Failed to populate DT"); - - return 0; -} -arch_initcall(publish_devices); - void __init prom_free_prom_memory(void) { } From patchwork Tue Jun 19 21:47:10 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Herring X-Patchwork-Id: 139271 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp13903lji; Tue, 19 Jun 2018 14:48:18 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIe71d26/rrwS88oeC3qDoch1PgMVEEPKvMVKZdJfxX/HxDOqb3NYm8t2tlNJVGlH/mAmOi X-Received: by 2002:a63:714e:: with SMTP id b14-v6mr16001797pgn.73.1529444897908; Tue, 19 Jun 2018 14:48:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529444897; cv=none; d=google.com; s=arc-20160816; b=OYNKPaUJd4gzPmgYQRxl17SGHdOLZ8xYrYGeNWYEYFFvSwRaaSDWMHNYYtLnIFmmz8 BZOTZybEdNgqv+32p1Xo8GO2+gKdBDnafQCcPluOap3SFFihaFtKO5GKFyeObyuk8DNQ rKY7+TUkh7X2WTas/hVlXnKtB+bVe2LSUaJUMgV7OkuK6nN8ozfpyioBdZdZgN5YmEvu 1qu2XQIUK9W7iqethhiZSaFO0Ub44kpZakSBichqRQPw9J2W3mm/MnIe34vbq78BSuLf +MZrASP8+F3T2OMy9J6bL7O4YcQ+eipx5XxgTRmkk9T6VF6cDbRfGSByU5XsLSX7LGGn SXtw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=W1Ng6EJXxwLUZYoApWutVMxtEjDppkRB8dUa9ssSHew=; b=B3glkKhWjcNXjWTLbtvE4GTX/Rk1UQeo5fhFEFKjAz1/EQG5DsZKD9tAPWyIj6z61K N+sLjTMHj9y72Y4UtjYBzZP4AOOu/zxg4Wj7JytgOX+bCelEPUPS9WzIx1TFR6oDi4Sh K+PZ68n5olmQEDp/zUmxbk5WfVWVcgQ5XtIBkPV36Mls1y5i8RdUcc7a5JTGPRu697HW yjbrpX2D6VCDUl0NNliGycqYqiz9G0IjwRiwAVgjwVsVlVLmT1vpAEE1GfJp73GnmH// 9HXYbf3tJYa0XcUkY38Xabr9229loIJ3qjBVIjmyo/y2YpfXUlwEyLNIkAFV9V9FX1UZ e/xQ== 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 u13-v6si614814pfh.282.2018.06.19.14.48.11; Tue, 19 Jun 2018 14:48:17 -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 S967397AbeFSVsJ (ORCPT + 30 others); Tue, 19 Jun 2018 17:48:09 -0400 Received: from mail-yw0-f194.google.com ([209.85.161.194]:34882 "EHLO mail-yw0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S967311AbeFSVrW (ORCPT ); Tue, 19 Jun 2018 17:47:22 -0400 Received: by mail-yw0-f194.google.com with SMTP id v131-v6so452910ywg.2 for ; Tue, 19 Jun 2018 14:47:21 -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:in-reply-to :references; bh=W1Ng6EJXxwLUZYoApWutVMxtEjDppkRB8dUa9ssSHew=; b=mxqPRez6wif6W94hfc0KmR73TzMO0BYkrpwPKP9NII39V4CXtKgrVn+brUgMsC7M23 9ZN+8JVPuIrAfRRfXo9wTBdWPta2SSdbHeiQDSUf2RK7+p7VlbNUnCWJALyNjUul0ijT YepO2rBH2vaPgNQSopWTa1ipxlStfZ7iyJqEuyMjWh0khre3jqdzHwdFmP1f/iR4FYXW YxJ8f3EBPprJeB3XqNEEcNgbdWOHve+oyLIV/oFvT6iYcVZE5sbMlaluSfGOCmG/IddY /CzEjycl225OmzasmqOEwa1cg9+XZ4SmmdsKcjDgbR6LV+BqwR/0u+TJHUPmsGCp69n5 aWHw== X-Gm-Message-State: APt69E1LTd5KNoqyUBJlxaNUVsZ/BddE7FlK9Da5Lz3Wr0Vdc+/6T5qS tGlAM3WWBD2Be7G97r7Jgg== X-Received: by 2002:a81:6541:: with SMTP id z62-v6mr8755428ywb.160.1529444840548; Tue, 19 Jun 2018 14:47:20 -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 x66-v6sm333612ywc.76.2018.06.19.14.47.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 19 Jun 2018 14:47:19 -0700 (PDT) From: Rob Herring To: Ralf Baechle , Paul Burton , James Hogan Cc: linux-kernel@vger.kernel.org, linux-mips@linux-mips.org, John Crispin Subject: [PATCH 5/5] MIPS: lantiq: remove unnecessary of_platform_default_populate call Date: Tue, 19 Jun 2018 15:47:10 -0600 Message-Id: <20180619214710.22066-6-robh@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180619214710.22066-1-robh@kernel.org> References: <20180619214710.22066-1-robh@kernel.org> 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: John Crispin Cc: Ralf Baechle Cc: Paul Burton Cc: James Hogan Cc: linux-mips@linux-mips.org Signed-off-by: Rob Herring --- arch/mips/lantiq/prom.c | 8 -------- 1 file changed, 8 deletions(-) -- 2.17.1 diff --git a/arch/mips/lantiq/prom.c b/arch/mips/lantiq/prom.c index 9ff7ccde9de0..d984bd5c2ec5 100644 --- a/arch/mips/lantiq/prom.c +++ b/arch/mips/lantiq/prom.c @@ -9,7 +9,6 @@ #include #include #include -#include #include #include @@ -114,10 +113,3 @@ void __init prom_init(void) panic("failed to register_vsmp_smp_ops()"); #endif } - -int __init plat_of_setup(void) -{ - return of_platform_default_populate(NULL, NULL, NULL); -} - -arch_initcall(plat_of_setup);