Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp3408149rwa; Tue, 23 Aug 2022 04:23:59 -0700 (PDT) X-Google-Smtp-Source: AA6agR7uCB+viqDQnrL62z4UKeajEod+uC76brMf8pymS2z5OpEY29BPaYHIB9ioZJkom2FV+vyP X-Received: by 2002:a05:6a02:318:b0:429:fde8:49af with SMTP id bn24-20020a056a02031800b00429fde849afmr19941628pgb.331.1661253839587; Tue, 23 Aug 2022 04:23:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661253839; cv=none; d=google.com; s=arc-20160816; b=Td7cYPlxFhTX5cTRnPqqXO0Ly2safPCpIPNGCjWUx4brPEveeT18GuBGSTSgE9wDkp wCG2gnZYWK0Azy1jutGYOZSs4t4RCCLEBljdyTYcXezz3Ci4AtLz7Pha0PW02MIoazD2 nHkiu0nB5ieoHEUMkl0Xb0F3fWNE3R3YpEA6VsHG51xuCh9Z1pbJW6EQWjMZPfphsyqA OLdwFzXJePZsn4SRUkVYOCVGQ8xBjV0wRwEsXny56qTqNMxUMTaPbjztflDkBzNUezxd ZFGuWl+UCMjO0SFfWcDSW89AlewdCgh4srDuIcKqiGUMWKLT4FSNSZMJWIp5pc2AKrnM x62g== 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=aULyO1T+KZlCGCcCR5q5t2pdQpm8BvpRtS1xnz6Be7s=; b=BhP1tLJ3YrlMb3Hq1eXMaiz003R4idwWG7WqL9HImIp4U2vJpYX6bevfpiLXIVOAkX b8tNbRtRf1IFE9vYm6FHDznfjgzonrDZrYnXUky629n65XUBiiXUQf6GHzQLt2jO/zNe iZ8GuxO5MPoBMVoVfopAmA0YTYph2MtPtYPvXCJZHXYS41W7VX6g32audj+MYBjjv+Sn CAnlh1XXZ8bDDNQ8Bf/GnvbenReAi22nfZDexkE1zF6w1eISJj+e9s4NnndAwLs9mZp7 jtWT6tRTrNy+rbUIIXoB6nodM4bOKp149S8FWoDPHsibLcGqN4Ye7QVilESGa7ZawWwx wwZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=rgHnh8pp; 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 u7-20020a170903124700b0016f129aba55si16180558plh.600.2022.08.23.04.23.45; Tue, 23 Aug 2022 04:23:59 -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=rgHnh8pp; 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 S1346523AbiHWJ7B (ORCPT + 99 others); Tue, 23 Aug 2022 05:59:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39318 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243444AbiHWJzL (ORCPT ); Tue, 23 Aug 2022 05:55:11 -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 561B59FAB4; Tue, 23 Aug 2022 01:46:36 -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 676176123D; Tue, 23 Aug 2022 08:46:36 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 635A0C433D6; Tue, 23 Aug 2022 08:46:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1661244395; bh=Wzr+JB/02qNfpc37gBcPQ8swNJmNAsWFgLjpwRHAugI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rgHnh8ppKdG/z3celZZ/uCVA5qzIH7VZQwIyaUReawTdK/p+rV9DHvx9lRiVyt67K sawSj0aBtPHjHSPYrcVPb8pkuRw4k83iePLwPRhmEEzkRb0+KRIUECMDyl55Z9rs8z cej/w6LUVfHxFSL6jjdqLA1PAezHaCh5dHskA1jw= 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 4.14 131/229] mfd: t7l66xb: Drop platform disable callback Date: Tue, 23 Aug 2022 10:24:52 +0200 Message-Id: <20220823080058.392543628@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220823080053.202747790@linuxfoundation.org> References: <20220823080053.202747790@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 43d8683266de..caa61649fe79 100644 --- a/drivers/mfd/t7l66xb.c +++ b/drivers/mfd/t7l66xb.c @@ -412,11 +412,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); @@ -427,8 +424,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 b4629818aea5..d4e7f0453c91 100644 --- a/include/linux/mfd/t7l66xb.h +++ b/include/linux/mfd/t7l66xb.h @@ -16,7 +16,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