From patchwork Thu Jun 21 08:03:43 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 932618 X-Patchwork-Delegate: monstr@monstr.eu Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=xilinx.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=monstr-eu.20150623.gappssmtp.com header.i=@monstr-eu.20150623.gappssmtp.com header.b="t7eGOO0U"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 41BDjm0Y9hz9s1B for ; Thu, 21 Jun 2018 18:03:56 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id B54A6C22012; Thu, 21 Jun 2018 08:03:52 +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_MSPIKE_H2, 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 A203DC21E63; Thu, 21 Jun 2018 08:03:49 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 3163EC21E63; Thu, 21 Jun 2018 08:03:48 +0000 (UTC) Received: from mail-wr0-f195.google.com (mail-wr0-f195.google.com [209.85.128.195]) by lists.denx.de (Postfix) with ESMTPS id C9377C21D56 for ; Thu, 21 Jun 2018 08:03:47 +0000 (UTC) Received: by mail-wr0-f195.google.com with SMTP id w7-v6so2107653wrn.6 for ; Thu, 21 Jun 2018 01:03:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monstr-eu.20150623.gappssmtp.com; s=20150623; h=sender:from:to:subject:date:message-id; bh=PNKQ7TpB9oirO3mz4DHXGDKhs6PW84AyGbOtR/v6mAI=; b=t7eGOO0U7JNpxd3EQtp+WuBgu3mDiuJ3KpCExfvrlcDsj1E8hwz64nmjUbhYAHTTzL kk4y3MesF/ormYqbTS/o9vZb06QUlTngSnxfpHTGX3cIMqD+JqxFCJuop55jqKAVZp+O rX0N9bjDg7I+qNzkQsd1nCQ5FiLvnDN+eV1VmYNQWaHElXQgnRVhuwmb/XyRshlW8xzn fShcKvNGWJLJpsHTcNddhS/GTq98nQm4arNWk7EgGNBOMKGAKmKlkdwo4w604uppG223 8NFBcEtEDKGskD/FuxF+UNvm+NliXMDoQLHJ7/thd1Ny0CFuxgRpeFWxB+koC0J26MOm tcxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:subject:date:message-id; bh=PNKQ7TpB9oirO3mz4DHXGDKhs6PW84AyGbOtR/v6mAI=; b=miv4GB7cDVwdfNXCX5futFlz9B93cJLFtztIB/vFv86TFQHdX/oeznlqJcOq9sKqGa xjivNtVjkIlNkmCRCF/AfACoajar+Kg2d/ydLuSPggTX5nkj/PGUUfIuoLpw1lkSBAa3 QBNuJGWjgb+ZtpjJRnGPylGXQOeZZ/20HezNpRTfS2jTsFVO7jWKWIsO8tVwh8jYQLIC QxgnFCDj184615ojknsB+wX0mm/KjMDRPkotuPM1Poxf/0fypSCSrkJWAGvZndJc4vAG EXc+2d7zXcUM1MhxZbEi5CNScmFYw9aUM4wGqmwr8B8ttHPHGkdlbI0UEjEGXfq0nl+O mgtg== X-Gm-Message-State: APt69E0+exLqKDb3bnTpPiaPD8QmHp46rGxK8QsNkVGfINvkI8eK5o9v dFl/AoJHHNGIUWMCa2AbcRzXYIqJ X-Google-Smtp-Source: ADUXVKLB6qXzuj3LKsqSx6OFbdVWURFLnkVkQPZK2rR4HVX0FotC99Rgvz/1WLiKSbyW5zIN0mLjoQ== X-Received: by 2002:adf:f482:: with SMTP id l2-v6mr21557696wro.259.1529568227345; Thu, 21 Jun 2018 01:03:47 -0700 (PDT) Received: from localhost (nat-35.starnet.cz. [178.255.168.35]) by smtp.gmail.com with ESMTPSA id d15-v6sm1407745wmb.0.2018.06.21.01.03.46 for (version=TLS1_2 cipher=AES128-SHA bits=128/128); Thu, 21 Jun 2018 01:03:46 -0700 (PDT) From: Michal Simek To: u-boot@lists.denx.de Date: Thu, 21 Jun 2018 10:03:43 +0200 Message-Id: <5055ab07d6140d74b53884272ed762731692b5e4.1529568221.git.michal.simek@xilinx.com> X-Mailer: git-send-email 1.9.1 Subject: [U-Boot] [PATCH] gpio: zynq: Use live-tree function 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" Use live-tree function. Signed-off-by: Michal Simek --- drivers/gpio/zynq_gpio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpio/zynq_gpio.c b/drivers/gpio/zynq_gpio.c index 8d84e3fc1313..afba4580f570 100644 --- a/drivers/gpio/zynq_gpio.c +++ b/drivers/gpio/zynq_gpio.c @@ -374,7 +374,7 @@ static int zynq_gpio_ofdata_to_platdata(struct udevice *dev) { struct zynq_gpio_privdata *priv = dev_get_priv(dev); - priv->base = devfdt_get_addr(dev); + priv->base = (phys_addr_t)dev_read_addr(dev); return 0; }