Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2542979yba; Mon, 15 Apr 2019 14:02:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqzxcDFaUc00KUcgx65Ph2VvZku+W01BravfCC3ILLb4I4qeMMm7bVHBR894mk6wz3fThmJP X-Received: by 2002:a17:902:24a2:: with SMTP id w31mr45172747pla.78.1555362136936; Mon, 15 Apr 2019 14:02:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555362136; cv=none; d=google.com; s=arc-20160816; b=W4Qw+wE/eDfpPfG+h5yfSK4PVcGwYgAslTq++f3tOrCKjBede1xdouMl4/zmVgaSwD N+oz8JDb3qZo4V9/Y0R3p5KD28/HIMS74++arDGuU/MGOqqIbAvDwTJoF935c4if2diq F4knvUUeQ4vtDd2ZhjR6qmifbOMVvgr/j6tyQ711+dbew5GINC2yeVqrqm1QA7mKdz+L XsqJvBmSP4cRNBnziS2o7hebmSWr4Eq/eADkUElloJJSUXHg3ott+uyz/NsXcQ+Ly+9f L+ODHAkva6rEQKXnt/6X4xEQ96LmpP+xgsvowezJhmCKMsO4XG96q63iOn9v811/wpKC yx5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=yWLI9fj53wRY8kGJAGKGOER5dnhpxv64doRnZ2w70/I=; b=Wlcl4l9dCiL5sVGQXb2PfUNp9pntvWos3PPrnO1yhnBeUtrZZYd86LWdb9ITgdp7gy 1iKhhdWR377dX6zRgdufnV4+CUeo9nnF2fMFjki8ZST+8ZXWL5MhW8vnWQ0idIkUad2D QukrM9r0eIDbC9t83b8SYiV86Ql32HH4MhnBb5XdEb2MS9cG1+IyCeQGnsjTgq1JIKXg woJHQbuEjCASyDC9G4f7imwsFnsnePW2HYZzuyUnhs461xYpPVUznctFkgEocPN4umRx bCL8g0DkA3CrKepj10TWbxfflO6Q0xjrRIs8j5w2cmCer2EKmAbd5KLwwjvA1PRjZ+Zs jh5Q== 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 z2si27454010pfz.143.2019.04.15.14.02.00; Mon, 15 Apr 2019 14:02:16 -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 S1727951AbfDOU7J (ORCPT + 99 others); Mon, 15 Apr 2019 16:59:09 -0400 Received: from mail-qt1-f194.google.com ([209.85.160.194]:37219 "EHLO mail-qt1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727821AbfDOU7I (ORCPT ); Mon, 15 Apr 2019 16:59:08 -0400 Received: by mail-qt1-f194.google.com with SMTP id z16so20908903qtn.4; Mon, 15 Apr 2019 13:59:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=yWLI9fj53wRY8kGJAGKGOER5dnhpxv64doRnZ2w70/I=; b=VUJFboz+Mnl4OcWMPYW77fLMEUGQ1jhD9vjq3M7Fyb3ajeIKWBTc8jOa3AwMkjEI/O hmWAFM0qPcVrTiPOFSANQnjYnF0ocZwDXxFpuCQupvw3F3QcPcqEg5KL6VvgvvGu1aXO LGYlLRmag3K/oP4UZw+1GhlfJ9ADGPsu81Ql7PN6+Qvoad+LvmJvSvtUvTfWgO4Zg+sW LBBGRVoMrJlJ4xOGIokuigJHajhwXlkXp70MbhwZZaNjNUzEMWxYD4ThMvil0q3BH51H Rf35V4IhYUIW/vnMOR78EluiZKNBMcq7aPFYGR/gJq4xfsHs5Wsj+QXoSTuGHbTQGNXa 5zoA== X-Gm-Message-State: APjAAAWjFcV90Ng0oO+8x0rs6RhhZE8gwqlLNvnz0QLIgzajqeDPNGhO zdMw3dFeRfHoZCNMoFilRXn3Oh4D26axNnizBFU= X-Received: by 2002:a0c:f68a:: with SMTP id p10mr63318409qvn.126.1555361947405; Mon, 15 Apr 2019 13:59:07 -0700 (PDT) MIME-Version: 1.0 References: <20190415202501.941196-1-arnd@arndb.de> <20190415205410.GA31583@roeck-us.net> In-Reply-To: <20190415205410.GA31583@roeck-us.net> From: Arnd Bergmann Date: Mon, 15 Apr 2019 22:58:49 +0200 Message-ID: Subject: Re: [PATCH 1/6] ARM: ks8695: watchdog: stop using mach/*.h To: Guenter Roeck Cc: Greg Ungerer , Linus Walleij , arm-soc , Wim Van Sebroeck , Linux ARM , Linux Kernel Mailing List , linux-watchdog@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 15, 2019 at 10:54 PM Guenter Roeck wrote: > > > > > config KS8695_WATCHDOG > > tristate "KS8695 watchdog" > > - depends on ARCH_KS8695 > > + depends on ARCH_KS8695 || COMPILE_TEST > > Is __raw_readl / __raw_writel really available for all architectures / platforms ? I'm fairly sure it is these days, only uml and s390 used to be the exceptions here, but they both added this. It's possible that something else is missing, I was hoping for the 0-day bot to tell me if so. > > @@ -238,6 +237,11 @@ static struct miscdevice ks8695wdt_miscdev = { > > static int ks8695wdt_probe(struct platform_device *pdev) > > { > > int res; > > + struct resource *resource = platform_get_resource(pdev, IORESOURCE_MEM, 0); > > + > > + tmr_reg = devm_ioremap_resource(&pdev->dev, resource); > > Please use devm_platform_ioremap_resource(). Ah, that is the function I was looking for, thanks for the hint. Arnd