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);