Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3014185pxb; Mon, 18 Oct 2021 06:37:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxo0oi/vzkVSPuH7FQkoBggxkd3c/QIp2tWlm0ALBK1kgamQtKbiQiMuMrADcOFkTMnugGm X-Received: by 2002:a17:903:230e:b0:13f:5f6:3722 with SMTP id d14-20020a170903230e00b0013f05f63722mr27492541plh.84.1634564260664; Mon, 18 Oct 2021 06:37:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634564260; cv=none; d=google.com; s=arc-20160816; b=as2l+kogWl5qsneHbbuWkUvh6ZKxcvp56JTR81m4UCnnn5ZXQW0qxMSUH1s19jBNse 17qbH9fqFSWvCGF1AWQOVh2pl1N8V2Ecjb9lGZsvnjcxxfzlJ74SBXmcQuvBRVuxrL6c XiheBXkLdbqsEMVtSHnersHx+uHnEM1FUM3hG7+9iKLMFsVR9LEalP/jVMkHlBgCI2lz 6Tbj/4oGlTVAcyRoEfLF5F/m7UG0RBRbyvcjAGhmmwAKMC2s9YxpzyNbZoHwJjqzET3n Ri48f1GWxOzLxtilTLP1oWxk0LkiZMtzP+31ZaC1kiqSKzBdvbf8ssnz4sW4uPmpGzY2 lFxg== 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=7/GArbmFBYFkEf2KT+blDe3D5gWrB2dBYwQ7cFO6tv0=; b=mv0zydZ5xvWFNiF2DbI3zEJyp2OLuumXSFaM3s6pv7DGINNQ6z3ySpSe5ujq7Z5jCx V11/qF4eTTbmlBQ7K9M5kZ+Ni/V/D8oRSWWfhmhr0ZK23vQ0O8gWuaXRlv9qt4DOTTHM jVNmpdzewP9rs0Sj2mD7V9DQTl73zQjmoj0uOrtaOZbwpbefwr1nF234s7se/JgYbRam mF68jHCfzoG1y4LSPrDY6GVrc3HHeuXvKA28QtzRPwncgTfpvR8ymOSdrpUcfW4v/0CG 7JreQzWybDwsZx/owgmHWwKYb0+Ode0lW/nnalHtHshtYneRcuNy4OFMrhMnhkqF7XpB /wyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=NDDpfk4Q; 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 t3si15295769pfj.78.2021.10.18.06.37.27; Mon, 18 Oct 2021 06:37:40 -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=NDDpfk4Q; 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 S232420AbhJRNiD (ORCPT + 99 others); Mon, 18 Oct 2021 09:38:03 -0400 Received: from mail.kernel.org ([198.145.29.99]:54280 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233189AbhJRNfo (ORCPT ); Mon, 18 Oct 2021 09:35:44 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 18EB1613AC; Mon, 18 Oct 2021 13:30:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1634563849; bh=sLaf6NbJ5YMqr38GrMe4lz5avGf1o6298sUlcl840DY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=NDDpfk4QgSmKGt/Zrewe0UdC6I8tWB1CQJwkw7yIUPQXURX2LtX3WZ59VLG5oqtrS jd+9BKPLbajHMTqxp2U7deep4t2ljvGGnDlAkFoyeMcgtUp1/oNcDmvlO3mlTngnHz XUl7AalNj9MN8RViwwllvC3SRiRhzO4P+w+5zDmo= 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.4 38/69] iio: adc: aspeed: set driver data when adc probe. Date: Mon, 18 Oct 2021 15:24:36 +0200 Message-Id: <20211018132330.739621517@linuxfoundation.org> X-Mailer: git-send-email 2.33.1 In-Reply-To: <20211018132329.453964125@linuxfoundation.org> References: <20211018132329.453964125@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 @@ -184,6 +184,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);