Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3094635rwb; Mon, 15 Aug 2022 18:00:10 -0700 (PDT) X-Google-Smtp-Source: AA6agR4SJKcZ2/GJv7PCsTHrI5L4aqBREUbxxFxjWzBgoAT5wDZ8b/wBT7GIyv6pp5PmtIaPW3cK X-Received: by 2002:a05:6402:177b:b0:43d:64c5:7799 with SMTP id da27-20020a056402177b00b0043d64c57799mr17235645edb.180.1660611610270; Mon, 15 Aug 2022 18:00:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660611610; cv=none; d=google.com; s=arc-20160816; b=uCQJpweltKcSmwBOCl8HQt2DqYF6H1ZsIEyAbf2vxSD1NWHdBmKoR4m+sJr5eHVFBF wUBBID3kdxp348/PRE8cYdWMzM5m9D/keX2wmfTBNS4of7e8+4xTcORGKwDwT5W2zQAd /ubpVLdTW7Fp6RmJt4QcfGHmGY9RyKKkeDwr4aop/K4mmrSg31eDFEk05ZLtGGxRoBiU XWG3ZhypcHAA2wiX/EL+9vsPSaYAYi3VikW90TVAXf/jjRaFq4KDlY6LgfylAS3SkUzr kBzumNb3Ik7VK5xxXRpsafvjxeo3dr28cPX6uQAN9gSW7T9ItsChvCuWU0Pr33UmUItO gPIg== 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=tUwYXjceyXx8Ngs9Cz5IQulzw8lsE7wqsxGu65aVaOk=; b=cbNbehCjOy44X/JBIiyK4xkYG1xWkPtwPZubUmpHIkn8RdYvFPNaXAah5JiRfNq3CZ 0pozIngM89cqemYLP7WkTPOjV0giu9wI6F8zgDa/dnhOVHBourXJcR305ueeDhzKtpex Ss+KHEZCmuz4PlUKugfyQQC6BeQCgDu/A7kmoaTsmeurui3TtbRGTPTq2NUmV3hnVkON q4s5esLICCV6k9DVNFyoIjAB6zXNjDuZNxaZuYjBJjU1znFeDfa9TSOdxwmsNv5Rwbzl NKgc6HvU8675PBU5qqqO9bOkohrFQ3YeAqTiPfsu0CreNmZyC1WVJPGLCM3nJ3Gr5HMP 1v+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=H1w8xUF1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g3-20020a1709065d0300b0073301a22cd5si10097082ejt.738.2022.08.15.17.59.39; Mon, 15 Aug 2022 18:00:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=H1w8xUF1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S240874AbiHPAtv (ORCPT + 99 others); Mon, 15 Aug 2022 20:49:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35528 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347279AbiHPApz (ORCPT ); Mon, 15 Aug 2022 20:45:55 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 95B54193571; Mon, 15 Aug 2022 13:41:33 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 32C7A611FA; Mon, 15 Aug 2022 20:41:33 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2CCF5C433C1; Mon, 15 Aug 2022 20:41:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660596092; bh=hyTcSWCJpM8XrR++nPsIwaPrLzF9BBedKqDgX0Srn/w=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=H1w8xUF1yYbjQjGghiBXsSrQCFdRt7H+MGX5pCZe8U7aUKaK82HfPedNvGnGFqh3G rZyaMZ5CmWncWjMoDNyHIHvnNmI4n9MMkHv6Nn0f7bIEpaYNO5AHj+8/yG+pvp1nfL RCBzvaYSLvRrVTJuKy+0aXWtOgrUwenQSRCBxZQQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= , Lee Jones , Sasha Levin Subject: [PATCH 5.19 0969/1157] mfd: t7l66xb: Drop platform disable callback Date: Mon, 15 Aug 2022 20:05:25 +0200 Message-Id: <20220815180518.453720081@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180439.416659447@linuxfoundation.org> References: <20220815180439.416659447@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Uwe Kleine-König [ Upstream commit 128ac294e1b437cb8a7f2ff8ede1cde9082bddbe ] None of the in-tree instantiations of struct t7l66xb_platform_data provides a disable callback. So better don't dereference this function pointer unconditionally. As there is no user, drop it completely instead of calling it conditional. This is a preparation for making platform remove callbacks return void. Fixes: 1f192015ca5b ("mfd: driver for the T7L66XB TMIO SoC") Signed-off-by: Uwe Kleine-König Signed-off-by: Lee Jones Link: https://lore.kernel.org/r/20220530192430.2108217-3-u.kleine-koenig@pengutronix.de Signed-off-by: Sasha Levin --- drivers/mfd/t7l66xb.c | 6 +----- include/linux/mfd/t7l66xb.h | 1 - 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/mfd/t7l66xb.c b/drivers/mfd/t7l66xb.c index 5369c67e3280..663ffd4b8570 100644 --- a/drivers/mfd/t7l66xb.c +++ b/drivers/mfd/t7l66xb.c @@ -397,11 +397,8 @@ static int t7l66xb_probe(struct platform_device *dev) static int t7l66xb_remove(struct platform_device *dev) { - struct t7l66xb_platform_data *pdata = dev_get_platdata(&dev->dev); struct t7l66xb *t7l66xb = platform_get_drvdata(dev); - int ret; - ret = pdata->disable(dev); clk_disable_unprepare(t7l66xb->clk48m); clk_put(t7l66xb->clk48m); clk_disable_unprepare(t7l66xb->clk32k); @@ -412,8 +409,7 @@ static int t7l66xb_remove(struct platform_device *dev) mfd_remove_devices(&dev->dev); kfree(t7l66xb); - return ret; - + return 0; } static struct platform_driver t7l66xb_platform_driver = { diff --git a/include/linux/mfd/t7l66xb.h b/include/linux/mfd/t7l66xb.h index 69632c1b07bd..ae3e7a5c5219 100644 --- a/include/linux/mfd/t7l66xb.h +++ b/include/linux/mfd/t7l66xb.h @@ -12,7 +12,6 @@ struct t7l66xb_platform_data { int (*enable)(struct platform_device *dev); - int (*disable)(struct platform_device *dev); int (*suspend)(struct platform_device *dev); int (*resume)(struct platform_device *dev); -- 2.35.1