From patchwork Fri Nov 4 15:39:02 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sven Peter X-Patchwork-Id: 13032222 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 452F5C4332F for ; Fri, 4 Nov 2022 15:40:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=0MIod3SZEfm2fUTteCU6JmDItUz8o6P074nbVT7IywM=; b=WhrF3OEOALq6kT AwXk8g8IpEIfqjZ4gbdjr7odLyuzassYUQG97oYLI1Xv0XTpKW4O+ZMqLtcVorcXrkPehwyYCQ/dC hMhSq0UkaVWN1CDCvbZSk+2Dbg8yDAPkeg+cZIHprWXfe+Aqi3EVvVLrXNGisXvJBJdb6Yh35MXqk ejVcLjeFsgGUQdn9DniC/ghznBHHmcDHrbCXuI22w8tvBAnJOX+bljGVx6hdWBSA73N7ffjLPgdhf Sph+Zs7MxrMuwA/zx3u2eQug1wJZOu6LmJY5kawE4rsXh2eU/7heQzoG2PVmnwVRMiVfUGVn6s6ZP zrn5S2YLUDBoA0Ec6CPw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oqymy-004HS2-6b; Fri, 04 Nov 2022 15:39:24 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oqymt-004HPT-Mm for linux-arm-kernel@lists.infradead.org; Fri, 04 Nov 2022 15:39:22 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 78EE05C012A; Fri, 4 Nov 2022 11:39:14 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Fri, 04 Nov 2022 11:39:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=svenpeter.dev; h=cc:cc:content-transfer-encoding:date:date:from:from :in-reply-to:message-id:mime-version:reply-to:sender:subject :subject:to:to; s=fm3; t=1667576354; x=1667662754; bh=AWuyVgNZ5N X5XYa72JpSx89IAy74SR0YpbdPJ6sn2uE=; b=ahSAhFPj0BXH9eemkB0r3x797M Oy9TkHBvbH4GA5qiXfKVhQehTcDjWFyz+kC2AaUD/Ta1lxkhjA5csDRYJPuGGsVO gR0j8YfQZTVcEg1Zs/XG9Pt2af4EeV0th4TpP4zxm57GvUftKs2s6L5SlbvzrJdi aql3KPFDUyfTGmuOkRxIGLXfjqakzOIc3MHQmg8ZSFY97pk2zWKIHStaTSUyfXfb iXuu6SfKpElBM4dWRWrYZVS77aFB3VfdFJTg8nXQutby6IFsxZKLL5vQVYIJ/nue nWWzZtHBQHUpJDOblIIMomNWULU/zFwDJZv6w8k97Z/Qhi8QELcA2Hs2uDfg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding:date:date :feedback-id:feedback-id:from:from:in-reply-to:message-id :mime-version:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t= 1667576354; x=1667662754; bh=AWuyVgNZ5NX5XYa72JpSx89IAy74SR0Ypbd PJ6sn2uE=; b=nUcvVRc3SwF/ylqQMXBOLjkzjAXE1I8i/u3p3V1Qp4I1c1XtoWH d9aIeKZUQ7x62GmT28op0g7a0viOaBHK+8duCMgFC+U0xmUiaVLGVd18jg6pDMoz rOfyfS+Xi/cOeRFx5dp0OzPR+RuqMAqRrbf8AM5zbly3pzA2/6sEz9RhjkCyMrJV oMocTuze0pszi/NuW9DO0WLaVnk+6Qg3LdXJ6Nm7xgmrxdc27pYOAVKWp3SRRCAw 1heCOUnjVZ7nJHeWFQhu3H5rnvGL85SJiMr8E4ttfwkRopqXwencsYyaatwOq4rh W8WJ7v/BRH2CobIUQRAjMGG4dxcAepfzQ4A== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvgedrvddugdejiecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvfevufffkffoggfgsedtkeertdertddtnecuhfhrohhmpefuvhgvnhcurfgv thgvrhcuoehsvhgvnhesshhvvghnphgvthgvrhdruggvvheqnecuggftrfgrthhtvghrnh epleduffeiheeuvedtffevtdeuleeljeduudfgtedtvefhfeffvdfghfejhefgleelnecu vehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepshhvvghnse hsvhgvnhhpvghtvghrrdguvghv X-ME-Proxy: Feedback-ID: i51094778:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 4 Nov 2022 11:39:11 -0400 (EDT) From: Sven Peter To: Arnd Bergmann Cc: Sven Peter , Hector Martin , Alyssa Rosenzweig , asahi@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kernel test robot Subject: [PATCH] soc: apple: sart: Stop casting function pointer signatures Date: Fri, 4 Nov 2022 16:39:02 +0100 Message-Id: <20221104153902.78999-1-sven@svenpeter.dev> X-Mailer: git-send-email 2.30.1 (Apple Git-130) MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221104_083920_294305_7ADBA147 X-CRM114-Status: UNSURE ( 9.47 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Fixes: b170143ae111 ("soc: apple: Add SART driver") Reported-by: kernel test robot Signed-off-by: Sven Peter --- drivers/soc/apple/sart.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/soc/apple/sart.c b/drivers/soc/apple/sart.c index 83804b16ad03..afa111736899 100644 --- a/drivers/soc/apple/sart.c +++ b/drivers/soc/apple/sart.c @@ -164,6 +164,11 @@ static int apple_sart_probe(struct platform_device *pdev) return 0; } +static void apple_sart_put_device(void *dev) +{ + put_device(dev); +} + struct apple_sart *devm_apple_sart_get(struct device *dev) { struct device_node *sart_node; @@ -187,7 +192,7 @@ struct apple_sart *devm_apple_sart_get(struct device *dev) return ERR_PTR(-EPROBE_DEFER); } - ret = devm_add_action_or_reset(dev, (void (*)(void *))put_device, + ret = devm_add_action_or_reset(dev, apple_sart_put_device, &sart_pdev->dev); if (ret) return ERR_PTR(ret);