From patchwork Tue Mar 31 10:12:24 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 46581 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f69.google.com (mail-wg0-f69.google.com [74.125.82.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id E1392215A7 for ; Tue, 31 Mar 2015 10:13:44 +0000 (UTC) Received: by wgua4 with SMTP id a4sf2397436wgu.2 for ; Tue, 31 Mar 2015 03:13:44 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=wSsMmalw8AET3ceCGQSGeeRUYcV+40lZ+MC7Seg+T64=; b=ZB12bSAZt1m/m4oPHgUG+Dw4ZGaA4HU4JqgvflxPOJZNEC7ktUKdiF9gvc9zXTzm1z fQCfwOlTQW4Ho04N5dgF105i3Nb1TdFNZXhpj1gug++wqx+9zo3DJiohvaN/ert1lISa /s77sHaXyS+3zK4Ka1wa+Wla2KoL1BPPzrUCit0jhth8kHAyfC1a8lPjfqLHS/FVQhZJ D3jn0tTBHqBlMFlQEZjnYMq2RImOipYyrLqyOc3m0FJpareMQV2sQdhNpd8EFCjQALBA 3KboyuV9sMYbH5q5iUv1npwhFFrjxlYvlKTlAYTJL2CwFFohAw52KgDfPJFYtpFYflxN G0Pg== X-Gm-Message-State: ALoCoQmuk6rrfmhhrKyiDITC9EWN2N6QQu0Tb66TwbwUWxIZIBzjkbOQ7mjV3FT0EBm5w2rD+L7d X-Received: by 10.112.17.105 with SMTP id n9mr8037174lbd.8.1427796824158; Tue, 31 Mar 2015 03:13:44 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.3.42 with SMTP id 10ls344010laz.42.gmail; Tue, 31 Mar 2015 03:13:43 -0700 (PDT) X-Received: by 10.152.2.130 with SMTP id 2mr3736176lau.120.1427796823950; Tue, 31 Mar 2015 03:13:43 -0700 (PDT) Received: from mail-lb0-f175.google.com (mail-lb0-f175.google.com. [209.85.217.175]) by mx.google.com with ESMTPS id sm7si8935042lbb.44.2015.03.31.03.13.43 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 31 Mar 2015 03:13:43 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.175 as permitted sender) client-ip=209.85.217.175; Received: by lbcmq2 with SMTP id mq2so8755276lbc.0 for ; Tue, 31 Mar 2015 03:13:43 -0700 (PDT) X-Received: by 10.112.212.106 with SMTP id nj10mr30279525lbc.36.1427796823849; Tue, 31 Mar 2015 03:13:43 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.57.201 with SMTP id k9csp1710141lbq; Tue, 31 Mar 2015 03:13:43 -0700 (PDT) X-Received: by 10.66.185.230 with SMTP id ff6mr67656368pac.102.1427796822024; Tue, 31 Mar 2015 03:13:42 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id iv3si18758459pbd.69.2015.03.31.03.13.41; Tue, 31 Mar 2015 03:13:42 -0700 (PDT) Received-SPF: none (google.com: linux-kernel-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753829AbbCaKNh (ORCPT + 27 others); Tue, 31 Mar 2015 06:13:37 -0400 Received: from mail-wg0-f51.google.com ([74.125.82.51]:36833 "EHLO mail-wg0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753751AbbCaKNd (ORCPT ); Tue, 31 Mar 2015 06:13:33 -0400 Received: by wgra20 with SMTP id a20so13430567wgr.3 for ; Tue, 31 Mar 2015 03:13:32 -0700 (PDT) X-Received: by 10.180.107.198 with SMTP id he6mr4266717wib.68.1427796812305; Tue, 31 Mar 2015 03:13:32 -0700 (PDT) Received: from mai.lan (135-224-190-109.dsl.ovh.fr. [109.190.224.135]) by mx.google.com with ESMTPSA id ea11sm8304337wic.24.2015.03.31.03.13.30 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 31 Mar 2015 03:13:31 -0700 (PDT) From: Daniel Lezcano To: tglx@linutronix.de, mingo@kernel.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Maxime Ripard Subject: [PATCH 3/5] clocksource/drivers/sun5i: Use of_io_request_and_map Date: Tue, 31 Mar 2015 12:12:24 +0200 Message-Id: <1427796746-373-3-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1427796746-373-1-git-send-email-daniel.lezcano@linaro.org> References: <551A72B6.7030106@linaro.org> <1427796746-373-1-git-send-email-daniel.lezcano@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: daniel.lezcano@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.175 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , From: Maxime Ripard of_iomap doesn't do a request_mem_region on the memory area defined in the DT it maps. Switch to of_io_request_and_map to make sure we're the only users. Signed-off-by: Maxime Ripard Signed-off-by: Daniel Lezcano --- drivers/clocksource/timer-sun5i.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/clocksource/timer-sun5i.c b/drivers/clocksource/timer-sun5i.c index 03f04d8..80459b9 100644 --- a/drivers/clocksource/timer-sun5i.c +++ b/drivers/clocksource/timer-sun5i.c @@ -137,7 +137,8 @@ static void __init sun5i_timer_init(struct device_node *node) int ret, irq; u32 val; - timer_base = of_iomap(node, 0); + timer_base = of_io_request_and_map(node, 0, + of_node_full_name(node)); if (!timer_base) panic("Can't map registers");