Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp2934310pxb; Sun, 29 Aug 2021 08:07:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy/OhgqdNlJlQ59lXfaqbcRA/gqfXxl/6UNzdgiGrq1nSY2SXLJKLqvkW7WIOyRcjn/IyhC X-Received: by 2002:a6b:5911:: with SMTP id n17mr14639250iob.180.1630249624833; Sun, 29 Aug 2021 08:07:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630249624; cv=none; d=google.com; s=arc-20160816; b=gofCIkIu3WRd+dWmXh67dUoP6fLs9H+W0qEYRR1IW4pOinbdkRb3gG0L+/RaKYmhTD 7ZmLfQRvnu0TlvxEy4bQLeh9OvJLfT9ckEnrnxYkGRIwK6lv4g8LUQntnuszJEa5uAlS KrIFkPRm9jatBoSQ4BHCdDRu72AH+GS1GY8KUbIb1/UgBVIa0z8LWjTFOFwGZpLVZFjE wenGwYWW2/pMOcj39va+RTguhNUGgurbprgTY4bhH+zjpNlD5pdAw/GFM+SJHSQBbiYO Jc2ykj7VwqSgaKr86hlrJzsCWgFk2mZLi11vT0YuleiQGD7DinLxm/dnzxTdgYydKuFR m/pQ== 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=EVVZvBkzErll1LLerV9wNrPxMuepByY9qtPuibcKLng=; b=zfcvLA4Km+XD+mqSpRJCOQrWTSPYSDwQMu02DP8hehOoTeDNjO3B4aAyKbG0Pi0iwv CyJCy6fRi47JFDTKLXymsWUIXqIzGSVQDdmk6EyuELMYNiu5TEQEpLvbohwuFBjkyI1A 4hBLSSyRirhryF3qAjYxDcvZsEz6yc6KlkHkpiBjAgRjk+y2kfzbKrRmVmjpvnDjFrBV RPPAfT2uVNFWs8+RV9GS6nOVOUlZwT5eJ0NMh4MGl51t0DXX1SnYiZ1aEvT21wy1O4UR hYzHYzgz4GmtIh48GoXDr7pbkUmmAX2mbwAaU1ifhZ1Qr4D4oUvzUDH5eL2pIZCarZxE NhMQ== 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 k8si12004456jaa.51.2021.08.29.08.06.53; Sun, 29 Aug 2021 08:07:04 -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 S235522AbhH2PGp (ORCPT + 99 others); Sun, 29 Aug 2021 11:06:45 -0400 Received: from mail.kernel.org ([198.145.29.99]:34546 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235501AbhH2PGn (ORCPT ); Sun, 29 Aug 2021 11:06:43 -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 BFDBB60F36; Sun, 29 Aug 2021 15:05:45 +0000 (UTC) Date: Sun, 29 Aug 2021 16:08:56 +0100 From: Jonathan Cameron To: Billy Tsai Cc: , , , , , , , , , , , , , Subject: Re: [RESEND v4 03/15] iio: adc: aspeed: set driver data when adc probe. Message-ID: <20210829160856.12dd9395@jic23-huawei> In-Reply-To: <20210824091243.9393-4-billy_tsai@aspeedtech.com> References: <20210824091243.9393-1-billy_tsai@aspeedtech.com> <20210824091243.9393-4-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, 24 Aug 2021 17:12:31 +0800 Billy Tsai wrote: > Fix the issue when adc remove will get the null driver data. > > Signed-off-by: Billy Tsai This is a fix that we should probably backport. Please add a fixes tag and move it to the start of the series so I can pick it during this kernel cycle rather than waiting for the next one. Thanks, 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 7010d56ac3b9..20462cf659e4 100644 > --- a/drivers/iio/adc/aspeed_adc.c > +++ b/drivers/iio/adc/aspeed_adc.c > @@ -201,6 +201,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))