Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp5803521ybc; Wed, 27 Nov 2019 09:39:17 -0800 (PST) X-Google-Smtp-Source: APXvYqx3W4B3x5PGgg7D2vCom57dv1FC/h8wBj5/Qq3i6pqq+eMEED7hfF5NrExwMBCP08C3sYFI X-Received: by 2002:a17:906:e94:: with SMTP id p20mr3365455ejf.57.1574876357478; Wed, 27 Nov 2019 09:39:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574876357; cv=none; d=google.com; s=arc-20160816; b=GnyqNt36nKK5pMl5aDKJaoW2Vmsqf+cSrnGrzlZ4WuvEZMyTJyL7gTHY7xInxTmjDV ceZcnqGFs1IawnCp7QWCc0ybg7W86Qqg/Q6Yzd4GT/2dNlU+ZBCZklcOHDxIEpX7U+e1 XuY5o51EEh8BAd4RChFBOgJyyZxP6XzI65eMCxnegF/PodaWSeIsZwTHmAEaTrDLclyy xJuCQuJJB6d+8lYGgWlaJm/y+h+Jfam4JxIsOc8fJe1bQHwSXUS28R9vg3fr8hMVbP0O uGodaFVE7QKYCTaAFy6H5gW0LfIID1YTeCtonfwrSxpcdXl/UDdOIztbEY4fXxU3N74M VW+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:to:from:date :dkim-signature; bh=jzfVtCy9GvqKHtl6HuNHulXlOpvvgBYFyAK8J4bZK54=; b=WDSDV8YtwnvGTklEnsQyYw7c0Q48ivq2BT+A0MvFH0bnL+SEcgBnLT5XeRnzqwCO/E A0SCZOXvoq+IUDoWUerHJhYOTADkBmFY2NX4A39X3CNLXoWpfy76/IvrjXAqu9wYUdB7 YTS1GYFM68QyM1m0q5DNVYABZALs9QiJRW7LRS+gFychUmd2ZOrla58QpPUzIiRU9eeR ZN+YvnRKmao+eJ8uJFDWtXEJm30yCze/OMEaSEo7dcQwe7fGwyVjnc2aQpB35JlwCjj0 Nb0tSw5yNaABKcbiZ8R6hPa5kO+GHvAO399DZIcLwjgQVh6LKsMtxDvBCLn31AjzNi8z 2npg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=BM8a+qfD; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n12si3701248edb.376.2019.11.27.09.38.53; Wed, 27 Nov 2019 09:39:17 -0800 (PST) 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; dkim=pass header.i=@kernel.org header.s=default header.b=BM8a+qfD; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727028AbfK0Rfu (ORCPT + 99 others); Wed, 27 Nov 2019 12:35:50 -0500 Received: from mail.kernel.org ([198.145.29.99]:59608 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726673AbfK0Rfu (ORCPT ); Wed, 27 Nov 2019 12:35:50 -0500 Received: from localhost (lfbn-1-10718-76.w90-89.abo.wanadoo.fr [90.89.68.76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 40B672073F; Wed, 27 Nov 2019 17:35:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1574876149; bh=8HRYzVgPcetDDCF2bvKH47TzErjz8apkOIgcOvQ1Q6Y=; h=Date:From:To:Subject:References:In-Reply-To:From; b=BM8a+qfDycXQPaQbw7hsiDRV8bKLEb8FpywEpFh3vOEHMmQ1oySZpXGMCd0pvVHrH 1iY9UZH1hZ6FYLZDgibJ5emEWQ4yU+lrVgNbPqySBe+7iNNKmCUHMOesopKoDFva/Z AAOADAj9iZp6SlGt3ST9nR57pV3T2Rj3+kVJ7jBI= Date: Wed, 27 Nov 2019 18:35:47 +0100 From: Maxime Ripard To: Vasily Khoruzhick , Yangtao Li , Zhang Rui , Eduardo Valentin , Daniel Lezcano , Amit Kucheria , Rob Herring , Mark Rutland , Chen-Yu Tsai , Mauro Carvalho Chehab , "David S. Miller" , Greg Kroah-Hartman , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v6 1/7] thermal: sun8i: add thermal driver for H6/H5/H3/A64/A83T/R40 Message-ID: <20191127173547.ch3pcv3lxgdcrfnu@gilmour.lan> References: <20191127052935.1719897-1-anarsoul@gmail.com> <20191127052935.1719897-2-anarsoul@gmail.com> <20191127111419.z5hfu5soxceiivg6@core.my.home> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="rwcawhqsgm2ldrw5" Content-Disposition: inline In-Reply-To: <20191127111419.z5hfu5soxceiivg6@core.my.home> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --rwcawhqsgm2ldrw5 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Nov 27, 2019 at 12:14:19PM +0100, Ond=C5=99ej Jirman wrote: > > + /* > > + * Avoid entering the interrupt handler, the thermal device is not > > + * registered yet, we deffer the registration of the interrupt to > > + * the end. > > + */ > > + ret =3D devm_request_threaded_irq(dev, irq, NULL, > > + sun8i_irq_thread, > > + IRQF_ONESHOT, "ths", tmdev); > > + if (ret) > > + return ret; > > + > > + return ret; > > I guess just return devm_request_threaded_irq(... ^ This is harder to extend though, so I'd keep the current construct (with a return 0 though). Thanks! Maxime --rwcawhqsgm2ldrw5 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCXd6z6AAKCRDj7w1vZxhR xcDrAQCIanJbpjnMpsEnvSREQtxK7fDMF2yUA4PEFXxT7Jc4XQD8DwS/ddoljPwC LOq4CK3fzDEGVY2Hq1jih6ifX6QOQAw= =BHNs -----END PGP SIGNATURE----- --rwcawhqsgm2ldrw5--