Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3028468pxb; Mon, 18 Oct 2021 06:55:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzYUTLh6d70PWjiFmEqQ0WOoGoV495qLUMxBN2a2+AgGVehitC63tMn7FDExxJHAn26PICR X-Received: by 2002:a17:90a:e2c7:: with SMTP id fr7mr18068438pjb.140.1634565322435; Mon, 18 Oct 2021 06:55:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634565322; cv=none; d=google.com; s=arc-20160816; b=U2jsrarKdyhvp9qZeGXIUfPp4IwRLgocD/+6RHh1M0vDGQQBH7EMvcMu7VEywp3e3F QLMkTlB2YYWm+fKS7X0szSNUqRfp90FS6oU8GtcDIeFWg9oBKGbcwsfbTLTt103N4Yqa v/leKdsZKNK3vT3tTlR+6oNfyIWJ5aKNn1i+mXL0oxCJPsNN0TZmTE/drc7tIyoxEGgg 8oYwfMdPQjp/Ulf3hxTLRmviLRXvUuBa43LgwsbNn16juVA8SP1+MuquFmOi5PrkM0eq laPRqJojYCOPJBomdjByMHURiuOcQCSv7bPGv5a0eVEbymbvd2G6ufpjm9LV1l3pHsdQ SleQ== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=3rdmfA9uBCZbcJyIh6JblvWAS5inOygFm5kECQkzIrQ=; b=J2Enz/0Sagnk8wMuYRB9VedHgtG+3hyPZHGb+/pwaSW2KFq15gI0FsQGHnkY+tpBz5 KdCBP5DSB3NpCDtuZ2/i10hfqX1B++30/55zywPgTqY1jJOogBmZUQYMyXtUpDChE+T9 5L8SAUK4ZGdBn/yyaz41mfGbeGGTiGP6WqrmbU1VEzNVuYpDrJwc9qUGyeOPemttcixQ N+jO4rADMzas2zStLWhT87IAUVo7yqmMAAMvm/YWoEtpn6MXhxoeqQtjozyirx79PL53 GajguALb99QEK0VXtAnmiqVjAfRtdKAeUT/xj9TXbgRs2CNgRGmkSAAynpmUdFcbW7N0 smwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=cImr1bvD; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v11si18948388plp.339.2021.10.18.06.55.09; Mon, 18 Oct 2021 06:55:22 -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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=cImr1bvD; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233672AbhJRN4Y (ORCPT + 99 others); Mon, 18 Oct 2021 09:56:24 -0400 Received: from mail.kernel.org ([198.145.29.99]:59130 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232045AbhJRNyY (ORCPT ); Mon, 18 Oct 2021 09:54:24 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 34562619EE; Mon, 18 Oct 2021 13:39:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1634564377; bh=0/NXyCFCgLjRaDEMu+8WjjgjPm1AQmy6JSx8rfNlOi8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cImr1bvD6wkV9SczOUSnKh2LQPOM/L/1kJ6Kn6M02bmMpixGv6yhX1T8YigAkjDGg J454sWmTft7IovQ09VnhXEa4hfxuHT1kFdgAvc8kOjYnTEZnwC+skNCupheF9drLTR Xmt9i9nnv9kIq7GFFSKsvT4U8XgM2reaWbHLF/ng= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Billy Tsai , Stable@vger.kernel.org, Jonathan Cameron Subject: [PATCH 5.14 065/151] iio: adc: aspeed: set driver data when adc probe. Date: Mon, 18 Oct 2021 15:24:04 +0200 Message-Id: <20211018132342.807743544@linuxfoundation.org> X-Mailer: git-send-email 2.33.1 In-Reply-To: <20211018132340.682786018@linuxfoundation.org> References: <20211018132340.682786018@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Billy Tsai commit eb795cd97365a3d3d9da3926d234a7bc32a3bb15 upstream. Fix the issue when adc remove will get the null driver data. Fixed: commit 573803234e72 ("iio: Aspeed ADC") Signed-off-by: Billy Tsai Link: https://lore.kernel.org/r/20210831071458.2334-2-billy_tsai@aspeedtech.com Cc: Signed-off-by: Jonathan Cameron Signed-off-by: Greg Kroah-Hartman --- drivers/iio/adc/aspeed_adc.c | 1 + 1 file changed, 1 insertion(+) --- a/drivers/iio/adc/aspeed_adc.c +++ b/drivers/iio/adc/aspeed_adc.c @@ -183,6 +183,7 @@ static int aspeed_adc_probe(struct platf 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))