Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp2049978pxb; Sun, 5 Sep 2021 07:25:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwF/UyLvA3BYXOtASpix9YI5KjhpXRxBTVZBoDfl6FNxujmuzq34qJ4wTtss81J+C23fnXn X-Received: by 2002:a92:d3c1:: with SMTP id c1mr5588183ilh.194.1630851907953; Sun, 05 Sep 2021 07:25:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630851907; cv=none; d=google.com; s=arc-20160816; b=WQPRGo2kJIZ2/ybweLLIYh7XrON5RKuTUEbHdEaJrp54OrcoIUH/dxcr1WLpr/EF0F 0ULsdcXhwZGXHHRsHuKXYkHSIcAm82N897qViPDslHHE0eLqJDAixMKWizj9n6VuNdUz 9qYxX63jVvvZfoIAK/LaZL7apUDGRDwKCwveZvp0gvXlTCpy54ZZbNRVqM9iAak2arRZ wN2DNY6FRJsx74UenBEdjssRlbsZOq5hDGe4Z5X5FGmiccOGs3XAxPXFyr+rHSYZ4ABX MdpzvrIw+Nxa7fmslLZBb5qV6UXdlhjtNme1Lu/JNDbvuG87CO0pqgrHFzIOZ/OXyljk 45hw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=lTkQDp4yfHyw3Bx4drwe+C8g+vKcLoQux5l0+lzcLsg=; b=R62pdSUfOD7XJBjZirBWngZyDcjUuNpgYZJeEJo+j5p/kYJR1f6hcHhhWHbSChiMXT xwWcjxuXvunGUIvEXqEhzbfL+5de2o0lIbU41Rm9miA07itjykAHuIERzemZKk/kbCan m2V8VYcKWtmwigCahtY/KnJ+g2OPbiZ50AsaIaM0ZCX/JeDPLRDNj1hQPV6q7EryQXy9 ghbZBQaMsJfmiu8W9H503b+r16gpF0VrDBvmNRBtuIK8YFBsaKjbDMFo2VPzVy7FQCGh vrfOFzIYhpP0OcYGlkXU/2NHnVvpvD1QvQhsV4kCZRNB8q0ht3dwCF6BGH7eOcwXl34y nWvA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id v17si4767881ilm.40.2021.09.05.07.24.55; Sun, 05 Sep 2021 07:25:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S232896AbhIEOWm (ORCPT + 99 others); Sun, 5 Sep 2021 10:22:42 -0400 Received: from mail.kernel.org ([198.145.29.99]:50496 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229566AbhIEOWl (ORCPT ); Sun, 5 Sep 2021 10:22:41 -0400 Received: from jic23-huawei (cpc108967-cmbg20-2-0-cust86.5-4.cable.virginm.net [81.101.6.87]) (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 E78AB60E8B; Sun, 5 Sep 2021 14:21:35 +0000 (UTC) Date: Sun, 5 Sep 2021 15:25:01 +0100 From: Jonathan Cameron To: Billy Tsai Cc: , , , , , , , , , , , , , Subject: Re: [v5 01/15] iio: adc: aspeed: set driver data when adc probe. Message-ID: <20210905152501.2c45d43a@jic23-huawei> In-Reply-To: <20210831071458.2334-2-billy_tsai@aspeedtech.com> References: <20210831071458.2334-1-billy_tsai@aspeedtech.com> <20210831071458.2334-2-billy_tsai@aspeedtech.com> X-Mailer: Claws Mail 4.0.0 (GTK+ 3.24.30; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 31 Aug 2021 15:14:44 +0800 Billy Tsai wrote: > Fix the issue when adc remove will get the null driver data. > > Fixed: commit 573803234e72 ("iio: Aspeed ADC") > Signed-off-by: Billy Tsai Thanks Billy Applied to the fixes-togreg branch of iio.git and marked for stable. Jonathan > --- > drivers/iio/adc/aspeed_adc.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/iio/adc/aspeed_adc.c b/drivers/iio/adc/aspeed_adc.c > index 19efaa41bc34..34ec0c28b2df 100644 > --- a/drivers/iio/adc/aspeed_adc.c > +++ b/drivers/iio/adc/aspeed_adc.c > @@ -183,6 +183,7 @@ static int aspeed_adc_probe(struct platform_device *pdev) > > data = iio_priv(indio_dev); > data->dev = &pdev->dev; > + platform_set_drvdata(pdev, indio_dev); > > data->base = devm_platform_ioremap_resource(pdev, 0); > if (IS_ERR(data->base))