Received: by 10.213.65.68 with SMTP id h4csp1078516imn; Sat, 31 Mar 2018 18:42:53 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+CJSOiMqkNoeFYNzYynUDJPl+Opjiyi4HFlSlbHD6h8w/EfdB901CPcl9ILfxTWYkwUtv2 X-Received: by 10.101.75.66 with SMTP id k2mr2990634pgt.66.1522546973168; Sat, 31 Mar 2018 18:42:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522546973; cv=none; d=google.com; s=arc-20160816; b=tIRgtUgHip85n9evBG4KqRgOvwyAysrer7HdM6aU5QqiZQUJMpJl5TpQrqQNWJ4iZs Mdiv8p0ZkgGpvrs0bO1015bBQwfJzR8baRSgku0GLs5OtHw3PR1vAbOzUh7DGnmdPd/X ZxnpCxzoz38GmUEFtzK8R3MmpIzYP1IhVZkwmvKO8EVFMZ28lkGx1ijFY9qt166o+y9z 4r9CAO9qxU0Q6z4IHS2qyb5oAuRUQnJLF/HZQBx0cWDCR4JLyZ95MIb444JHy7bBvoua nEI0saCiD55YcEtRa/+3onbCP3+VtZjrY6l0A++C8NE6GH7ixaxE68/bch+ARvuT7Nuz BFgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:subject:from:references:in-reply-to :message-id:cc:to:arc-authentication-results; bh=zWTTuTEYr379EExQt7Qj1zIos9X02+ua85NkLsqHg3w=; b=P2gzl01lnxYd+/vq8VnT8vPPjUDIk7VrjZ4ehIBpiEAdAHuy+5Ssr1uk7P4X9VUD+m 1Bd+nN3rcoz6PFmpYKfVejzct2FG3EWtBxdtJfZs+wRP0tgcMVs5xnSPKiJPKHA0fzKs tXEydAhIMdzaoFqBb60YxHz65YmAjUwNAuUFXPlGpiKbhFaBPsftTTW6mE+BAn4UYS4W 1uj0UDf0dZ+BSMuYlXKDk6yjsdvPNTqlNB9i5tRzbu4CA1oF3MUf+WpcnU+sH6JnI1ka 4g+4pm747UgXqXQZMZi2av67JLxbF6z6w+Doqxg4zBKUHcicsOiSl7zFKrl9grdv6TNR NlLg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k17si7776020pgf.534.2018.03.31.18.42.39; Sat, 31 Mar 2018 18:42:53 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753249AbeDABlL (ORCPT + 99 others); Sat, 31 Mar 2018 21:41:11 -0400 Received: from kvm5.telegraphics.com.au ([98.124.60.144]:47314 "EHLO kvm5.telegraphics.com.au" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752879AbeDABlH (ORCPT ); Sat, 31 Mar 2018 21:41:07 -0400 Received: by kvm5.telegraphics.com.au (Postfix, from userid 502) id D3B8F228E2; Sat, 31 Mar 2018 21:41:04 -0400 (EDT) To: Geert Uytterhoeven Cc: Laurent Vivier , Jens Axboe , linux-m68k@lists.linux-m68k.org, linux-kernel@vger.kernel.org Message-Id: In-Reply-To: References: From: Finn Thain Subject: [PATCH 02/12] m68k/mac: Fix SWIM memory resource end address Date: Sat, 31 Mar 2018 21:41:04 -0400 (EDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The resource size is 0x2000 == end - start + 1. Therefore end == start + 0x2000 - 1. Cc: Laurent Vivier Tested-by: Stan Johnson Signed-off-by: Finn Thain --- arch/m68k/mac/config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/m68k/mac/config.c b/arch/m68k/mac/config.c index 54f3a8421afc..1aba633b7268 100644 --- a/arch/m68k/mac/config.c +++ b/arch/m68k/mac/config.c @@ -1007,7 +1007,7 @@ int __init mac_platform_init(void) struct resource swim_rsrc = { .flags = IORESOURCE_MEM, .start = (resource_size_t)swim_base, - .end = (resource_size_t)swim_base + 0x2000, + .end = (resource_size_t)swim_base + 0x1FFF, }; platform_device_register_simple("swim", -1, &swim_rsrc, 1); -- 2.16.1