From patchwork Wed Nov 29 10:19:09 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 119950 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp2863335qgn; Wed, 29 Nov 2017 02:20:12 -0800 (PST) X-Google-Smtp-Source: AGs4zMZEbpXzgaM9HXSF/z0GDiXz/0yn6wl61tmXBJdEvHm3ktBw2hJSDzGHq75rl1/BuR+/DwcU X-Received: by 10.80.174.143 with SMTP id e15mr7234388edd.10.1511950811954; Wed, 29 Nov 2017 02:20:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511950811; cv=none; d=google.com; s=arc-20160816; b=QGXQMDlb8ab7tZBfIcUG+rPfiq8IR7+a7NgpoYhMibIcps/8NCzaRiCDwlw7+jIrmE gE77fHqR+QMxdnjw/ZC1PDWczTb2LVUYPhmchBGPfkWRrc6pGiYW7sWHtZFqyTHlH+Ob ALUOlwdsatYVgTg4nGNU+PtaE9mfRgUUDATSOQoIhQVL8i+EDpA7dm5oAXROwUz28x+T orYxHF6qmhQuQx4z1GmRJpbndsAEjEX2e9/WiCtDQNi4dZNirCAYW2ord95oRpxicEWI JP0QfKUcx3f2CJLh5Ec4LFIN/Q8WYNPrC0uyQczsheejEdFgUBvGx6Qdl7pSmCzCd5hc eCcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:cc:message-id:date:to:from :dkim-signature:dkim-filter:arc-authentication-results; bh=GC4mZJS4DQBwaeAGLTIWn1STA9lJDoF3skrWO9ysNXA=; b=ZEtCcl1jXE8Cd0B4aMDWc2uqJV2FHrK54KwnRC6f5m44p5DFLDTYwd+tK1vCY+zmTt pC7AyG02fa7wj0dB6WOatzMGbLP5NXxlM+9Zz0uE2k2wTaCD5Twn/kl4cuANZuobv0Oy nQyXrRFy3yUreCNfNmG09sHjLBCVHAyXXu0lb/8sJVs9tfaoKXlF1fU4RbfTOS7m0yxj wgSLdeswwdK5ARKSBraVRBiZD3BBK6rxcYfcblMYXooWGerAwH7/xrQ++FeiU3oGXOT0 NlgA6yczdY86J9SLjBOSxzkPPAw0y79SNEdWFjiM+c/veLYV82d1x5+p1WrhOm85nsU2 zuKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@nifty.com header.s=dec2015msa header.b=IDt5Lxes; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Return-Path: Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id b28si1381635edc.386.2017.11.29.02.20.11; Wed, 29 Nov 2017 02:20:11 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) client-ip=81.169.180.215; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@nifty.com header.s=dec2015msa header.b=IDt5Lxes; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by lists.denx.de (Postfix, from userid 105) id 6B7E5C21EE7; Wed, 29 Nov 2017 10:20:09 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=RCVD_IN_DNSWL_BLOCKED, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 04F15C21E1E; Wed, 29 Nov 2017 10:20:08 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 60A7BC21E1E; Wed, 29 Nov 2017 10:20:06 +0000 (UTC) Received: from conuserg-10.nifty.com (conuserg-10.nifty.com [210.131.2.77]) by lists.denx.de (Postfix) with ESMTPS id 69A2CC21E09 for ; Wed, 29 Nov 2017 10:20:05 +0000 (UTC) Received: from pug.e01.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-10.nifty.com with ESMTP id vATAJY1i001028; Wed, 29 Nov 2017 19:19:35 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-10.nifty.com vATAJY1i001028 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1511950775; bh=nNE7c/rPo0NRVDQ4nUquJf7PDCyhhjI0UW5xQ7afZ2M=; h=From:To:Cc:Subject:Date:From; b=IDt5LxesDQX+Hf9fVV84sh3pOjshEL2X2E+2nbA88sMaXH0lO2aU3U0pp5701MsHt KTz3cIrgzjjfp8IgDnTim73zILfkiS2Wkk0XNVsr+rPQkWiaVX7CxgSWnBWyt7/LN2 mvzICdXuOv7uJq461dOmB/d/of2T6Hlfyag2vyOWRcmAMEzpF11YNv/JyTyJvzzjXl UXPfRyQ6qW7fzHW3HKWTLzWiyxP/zh15tuD0Yv6wlg5U84pjBSPJZGv2U8lH/Oz6Hc lZh0nhKrmU8hRXTyXK+EGgN3Get/gNPcX6FbxYyzNLat2Jlwg7GdV+G/PXFbxrvpc4 Ep7zD2HHJGEsQ== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: u-boot@lists.denx.de Date: Wed, 29 Nov 2017 19:19:09 +0900 Message-Id: <1511950749-9502-1-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 Cc: Marek Vasut , Scott Wood , Scott Wood Subject: [U-Boot] [PATCH] mtd: nand: denali: remove ad-hoc board_nand_init() entry X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" This driver is highly dependent on the configuration from denali_dt.c Please enable CONFIG_NAND_DENALI_DT if you use this driver. Signed-off-by: Masahiro Yamada --- drivers/mtd/nand/denali.c | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/drivers/mtd/nand/denali.c b/drivers/mtd/nand/denali.c index 7a87adc..8ff2d09 100644 --- a/drivers/mtd/nand/denali.c +++ b/drivers/mtd/nand/denali.c @@ -1366,29 +1366,3 @@ free_buf: return ret; } - -#ifndef CONFIG_NAND_DENALI_DT -static int __board_nand_init(void) -{ - struct denali_nand_info *denali; - - denali = kzalloc(sizeof(*denali), GFP_KERNEL); - if (!denali) - return -ENOMEM; - - /* - * In the future, these base addresses should be taken from - * Device Tree or platform data. - */ - denali->reg = (void __iomem *)CONFIG_SYS_NAND_REGS_BASE; - denali->host = (void __iomem *)CONFIG_SYS_NAND_DATA_BASE; - - return denali_init(denali); -} - -void board_nand_init(void) -{ - if (__board_nand_init() < 0) - pr_warn("Failed to initialize Denali NAND controller.\n"); -} -#endif