From patchwork Thu Mar 14 15:09:21 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Martinez Canillas X-Patchwork-Id: 2271731 Return-Path: X-Original-To: patchwork-linux-omap@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 8577D3FCF6 for ; Thu, 14 Mar 2013 15:09:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756950Ab3CNPJo (ORCPT ); Thu, 14 Mar 2013 11:09:44 -0400 Received: from bhuna.collabora.co.uk ([93.93.135.160]:46312 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751089Ab3CNPJn (ORCPT ); Thu, 14 Mar 2013 11:09:43 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: javier) with ESMTPSA id 35D821698535 From: Javier Martinez Canillas To: Jon Hunter Cc: Benoit Cousson , Tony Lindgren , Grant Likely , Russell King , Enric Balletbo i Serra , Ezequiel Garcia , Matthias Brugger , linux-omap@vger.kernel.org, devicetree-discuss@lists.ozlabs.org, Javier Martinez Canillas Subject: [PATCH 2/3] ARM: OMAP2+: rename gpmc_probe_nor_child() to gpmc_probe_generic_child() Date: Thu, 14 Mar 2013 16:09:21 +0100 Message-Id: <1363273762-17441-3-git-send-email-javier.martinez@collabora.co.uk> X-Mailer: git-send-email 1.7.7.6 In-Reply-To: <1363273762-17441-1-git-send-email-javier.martinez@collabora.co.uk> References: <1363273762-17441-1-git-send-email-javier.martinez@collabora.co.uk> Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org The gpmc_probe_nor_child() function is used in the GPMC driver to configure the GPMC for a NOR child device node. But this function is quite generic and all the NOR specific configuration is made by the driver of the actual NOR flash memory used. Other Pseudo-SRAM devices such as ethernet controllers need a similar setup so by making this function generic it can be used for those too. Signed-off-by: Javier Martinez Canillas --- arch/arm/mach-omap2/gpmc.c | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/arch/arm/mach-omap2/gpmc.c b/arch/arm/mach-omap2/gpmc.c index 8799aed..898b44d 100644 --- a/arch/arm/mach-omap2/gpmc.c +++ b/arch/arm/mach-omap2/gpmc.c @@ -1439,14 +1439,14 @@ static int gpmc_probe_onenand_child(struct platform_device *pdev, #endif /** - * gpmc_probe_nor_child - configures the gpmc for a nor device + * gpmc_probe_generic_child - configures the gpmc for a child device * @pdev: pointer to gpmc platform device - * @child: pointer to device-tree node for nor device + * @child: pointer to device-tree node for child device * - * Allocates and configures a GPMC chip-select for a NOR flash device. + * Allocates and configures a GPMC chip-select for a child device. * Returns 0 on success and appropriate negative error code on failure. */ -static int gpmc_probe_nor_child(struct platform_device *pdev, +static int gpmc_probe_generic_child(struct platform_device *pdev, struct device_node *child) { struct gpmc_settings gpmc_s; @@ -1552,7 +1552,7 @@ static int gpmc_probe_dt(struct platform_device *pdev) } for_each_node_by_name(child, "nor") { - ret = gpmc_probe_nor_child(pdev, child); + ret = gpmc_probe_generic_child(pdev, child); if (ret < 0) { of_node_put(child); return ret;