From patchwork Tue Jun 19 21:40:20 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Herring X-Patchwork-Id: 139264 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp7429lji; Tue, 19 Jun 2018 14:40:28 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIJ+/hyCCuOVtRjWoMvbo4rwwWczuc05A3rzXPixu49bxukC0kA8eBf4MrcH9+qo/Gqtlxk X-Received: by 2002:a63:7419:: with SMTP id p25-v6mr16697141pgc.24.1529444428835; Tue, 19 Jun 2018 14:40:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529444428; cv=none; d=google.com; s=arc-20160816; b=FHaJbcjtfLM1HdXJq9YBcrjuz0oZo05O6isd2aRdRKFKD0+YBywH40KXJXAM4H3PJJ p27ABPM9x45uA3yVjK5FGwwj8r/Cvj4vMIAJORBgzObOs/11D07mda6IrQQOiynX2jUu n6cVmttsB4LrcuWuSHcihvqzsXQvDYKUzn5Dp2KVPovFM9XV/oBnMwyOHHE+CSnjvN3Y NOBwPHBUstCcLDLeLx5bK6zjjk3W8AW5bvPOd2wQeVkCzFcdT3nBNRM6s15+KAShXSud 389aS6IUQ/aQ9pKj3Yfeuk4P15WP/H2IbXh1i029nR8SpBBObPZIOV7XxeExSsqD2faM Lvqw== 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=1TuWR6BmmhJF//ALmZxhGuMOBC4jPLrHbXFzJc1D/aI=; b=QQH5sZmfpIcz7gub82vWWeu5SwyemcVBOx//4HJT9zHsDDehulzjxJEd+1wawJAnLw zTY2+ESvaLEcBom0YDFEmhFWucdSb5bEidtOxD8KKa3wkae7Zup9Do6RVXEgsVwmd9lG UaxLvY4T5r+BTz7lUGJa4cVhlxQe3MEVs1RLu0/toN2ahIABflzTLGA7EGRDrWANYoc+ Lm9BfuCb/bU5Jxe1VdEFPIiU0JGZG1ypS5JupMZ1q+PyBoHCV8eaaxBsTlb/QCGjCNp/ eWsMCP1kBQopChE/aLL078X/m3TSq7t6Y79z8KzD4gwHypbUJcgH6fEVLswcP41jGkVO j8Iw== 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 n1-v6si686472pfd.128.2018.06.19.14.40.28; Tue, 19 Jun 2018 14:40:28 -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 S967251AbeFSVk0 (ORCPT + 30 others); Tue, 19 Jun 2018 17:40:26 -0400 Received: from mail-yb0-f196.google.com ([209.85.213.196]:33634 "EHLO mail-yb0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757188AbeFSVkX (ORCPT ); Tue, 19 Jun 2018 17:40:23 -0400 Received: by mail-yb0-f196.google.com with SMTP id e84-v6so481953ybb.0 for ; Tue, 19 Jun 2018 14:40:23 -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=1TuWR6BmmhJF//ALmZxhGuMOBC4jPLrHbXFzJc1D/aI=; b=OkSK5mx5f6GmpbNHJ69NKqWIArzybj2xAhFOTd7zt1sJLHEraWOKFjBIzhRbrLMZHW tL5IFokrO1ducMcnGsb7uM+018i1QPp7rUr/b0WSXboUmG7GuNDaSlD0T2sIGplqcrrY W7GHRhgRvxdqnerE2+Q0oaRCvEfwwstMSNTDp8eXA51Cm/NwVxcIYph/BK4ISe9d+XQf cO2NkFy2BswgOXbxB8pWkCMgXv41rBH2bXQOQ1s460+U3ArREu65goxFgh6o6jR2Y/Sv mInV5XvCyD1Y+sDyTLYJJrPdeVJv2SvTIIoJ6AE/dd5oQg4bmXMTRC4xr00AoyIljHph Ke7w== X-Gm-Message-State: APt69E3UhCBTL8HScOCdcY30hz/93WVLs/Pa2uU++/kWx0dJG7w7fLmx x2m4xVMrT5PsTGCfFLM0O3Yj4UA= X-Received: by 2002:a25:b6c2:: with SMTP id f2-v6mr9298053ybm.329.1529444422698; Tue, 19 Jun 2018 14:40:22 -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 w6-v6sm282411ywg.98.2018.06.19.14.40.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 19 Jun 2018 14:40:22 -0700 (PDT) From: Rob Herring To: Nicolas Ferre Cc: linux-kernel@vger.kernel.org, Alexandre Belloni , linux-arm-kernel@lists.infradead.org Subject: [PATCH] ARM: at91: remove unnecessary of_platform_default_populate calls Date: Tue, 19 Jun 2018 15:40:20 -0600 Message-Id: <20180619214020.18608-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 machine 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: Nicolas Ferre Cc: Alexandre Belloni Cc: linux-arm-kernel@lists.infradead.org Signed-off-by: Rob Herring --- arch/arm/mach-at91/at91rm9200.c | 5 ----- arch/arm/mach-at91/at91sam9.c | 5 ----- arch/arm/mach-at91/sama5.c | 5 ----- 3 files changed, 15 deletions(-) -- 2.17.1 diff --git a/arch/arm/mach-at91/at91rm9200.c b/arch/arm/mach-at91/at91rm9200.c index 656ad409a253..42583261951e 100644 --- a/arch/arm/mach-at91/at91rm9200.c +++ b/arch/arm/mach-at91/at91rm9200.c @@ -8,17 +8,12 @@ * Licensed under GPLv2 or later. */ -#include -#include - #include #include "generic.h" static void __init at91rm9200_dt_device_init(void) { - of_platform_default_populate(NULL, NULL, NULL); - at91rm9200_pm_init(); } diff --git a/arch/arm/mach-at91/at91sam9.c b/arch/arm/mach-at91/at91sam9.c index 3dbdef4d3cbf..863a0e7ba00f 100644 --- a/arch/arm/mach-at91/at91sam9.c +++ b/arch/arm/mach-at91/at91sam9.c @@ -7,9 +7,6 @@ * Licensed under GPLv2 or later. */ -#include -#include - #include #include @@ -17,8 +14,6 @@ static void __init at91sam9_init(void) { - of_platform_default_populate(NULL, NULL, NULL); - at91sam9_pm_init(); } diff --git a/arch/arm/mach-at91/sama5.c b/arch/arm/mach-at91/sama5.c index 3d0bf95a56ae..e3a84a59db76 100644 --- a/arch/arm/mach-at91/sama5.c +++ b/arch/arm/mach-at91/sama5.c @@ -7,9 +7,6 @@ * Licensed under GPLv2 or later. */ -#include -#include - #include #include #include @@ -18,7 +15,6 @@ static void __init sama5_dt_device_init(void) { - of_platform_default_populate(NULL, NULL, NULL); sama5_pm_init(); } @@ -47,7 +43,6 @@ MACHINE_END static void __init sama5d2_init(void) { - of_platform_default_populate(NULL, NULL, NULL); sama5d2_pm_init(); }