Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3011947pxb; Mon, 18 Oct 2021 06:34:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzkh6tJsUnko2MdGOoRTKfrDc+FrKQUMjmJMSOgezJAFCV7RH+krLIXTU3mIVaXnDIWPei2 X-Received: by 2002:aa7:8f12:0:b0:44c:833f:9dad with SMTP id x18-20020aa78f12000000b0044c833f9dadmr28640448pfr.35.1634564094400; Mon, 18 Oct 2021 06:34:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634564094; cv=none; d=google.com; s=arc-20160816; b=xxJB3xtklbLkAhob1+ne0kGdMhp+ZmBVrqZmP4DwqYV2hKgiuQjgtduWmXCMYkEqVS loab29exLOQK3M7MSANppbk6w4AQYezmH7wvNzGdQz17ccTDVhWJFA2sPZ0J7KmonxQH qKmUuDGydPuaN2jhiGZx7NRPcPQ3UCf3BAdpCDGSG5PkhXdPJnayqMawpciMtJ1i+KLg o9bbMdSODzXC7lrzNZJcVMypEuqFRZ8l8d5CZRftBPG08HU6glDX8IfWYv5dpbgs3jCS htnPNC2V5A5Zcsu6jB2wkWzRqaq8jC2qaWffQZZfbEF+XaXHkV/iVjTuDT8jB2f7MZzL VtlA== 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=VDnL5dYaBKB8dBQ77FFWdDnmYZ1pUhzBrSM++7B563Q=; b=x32DVJjm1WadRojBcbT6VV+PqViJM1COdKvy6R/pNXVaM3KPCnwX7FHlBKMTiHSak6 6iY08v6pJ9kvWUO/E91dukbc6brtmef2FAibsBNyUZRcVpad+kDY3lb1bvdDe/skRzPX hcKKSFMXEA2tGY4NCpdZ+btjpn2psxYbSp7HgMc2VHHX46TKpsR1Tm+BW4SJNpX7eb1q QpHmhRuThKEPyUPBkek0h1oV7bcnHGegX7A6n439O5jpUGe8EyRwPW6FTVXNYM7ooeVD lmzD1ZAI5r0PiI0g0sduY5kAMmgX60rTi8WI6U1I51M0Hdqam/B+EVo9x977EMDSGas0 J1tQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=uEVsfMAy; 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 t21si18077435pfh.119.2021.10.18.06.34.39; Mon, 18 Oct 2021 06:34:54 -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=uEVsfMAy; 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 S233014AbhJRNea (ORCPT + 99 others); Mon, 18 Oct 2021 09:34:30 -0400 Received: from mail.kernel.org ([198.145.29.99]:41820 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232592AbhJRNc2 (ORCPT ); Mon, 18 Oct 2021 09:32:28 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id C887C613A3; Mon, 18 Oct 2021 13:29:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1634563759; bh=ua89X3wkJH7YUfLcL3sxpZ8BGsUVN7KsUotGZZ66I9M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=uEVsfMAyRaeS4SduEzIiSkV6Vm+Jxyat0Sgy1TCzQeoAB2my8h+HJmldMATloSSoy N5RfxdhwlFqUz4o3gAjKW4I//SGwdbtOonvA+e89XVpGoJo/UUCGioXupzacZseVTG 5ZfhBf1g0S4/sOUuDB0E/ps3G5E9AZOWvfPA+dDo= 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 4.19 27/50] iio: adc: aspeed: set driver data when adc probe. Date: Mon, 18 Oct 2021 15:24:34 +0200 Message-Id: <20211018132327.442140159@linuxfoundation.org> X-Mailer: git-send-email 2.33.1 In-Reply-To: <20211018132326.529486647@linuxfoundation.org> References: <20211018132326.529486647@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 @@ -188,6 +188,7 @@ static int aspeed_adc_probe(struct platf data = iio_priv(indio_dev); data->dev = &pdev->dev; + platform_set_drvdata(pdev, indio_dev); res = platform_get_resource(pdev, IORESOURCE_MEM, 0); data->base = devm_ioremap_resource(&pdev->dev, res);