From patchwork Sat Aug 27 11:41:39 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe JAILLET X-Patchwork-Id: 12956988 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 B9CF9ECAAD2 for ; Sat, 27 Aug 2022 11:43:07 +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=T608zWoPOC6lbjcOJboHRA052HfXieRT4V7nydyc7PA=; b=FSsfsYSXu3UoZ5 CrYTRkNDOJIveTVJq/d4ye9Shpggh98ktNeA9rX3IA4fgdOn/7xjP/umE/xfm/Hy1Z23YOo5d0zd4 uZIBgjthxVlIWjU83JxtGuEYF3Qzl8Huo6Q4WQwzpGxIwAw+ojApLBMWOiUd2xf1iWxczR3K+LdpE 3Jtg7aViZ0KLV175r0KxgtPsM3jNe/r+4n/Fvf1wYInpgaUfSon5OOY3bj8fV4AdWOBmNOjqO0oDj fSemS1ufaC4wm/MmawemP2vsjWf83LdJoQpzMff473og4eCV0yZ5UpVjyYIFq9cD/YXHIfnI2H4CR SsX0dV8VKMLo4TTS+lQQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oRuCN-008zLA-3O; Sat, 27 Aug 2022 11:41:59 +0000 Received: from smtp07.smtpout.orange.fr ([80.12.242.129] helo=smtp.smtpout.orange.fr) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oRuCI-008z7n-9E for linux-arm-kernel@lists.infradead.org; Sat, 27 Aug 2022 11:41:56 +0000 Received: from pop-os.home ([90.11.190.129]) by smtp.orange.fr with ESMTPA id RuC4oJLK7XFXxRuC4oYr06; Sat, 27 Aug 2022 13:41:45 +0200 X-ME-Helo: pop-os.home X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Sat, 27 Aug 2022 13:41:45 +0200 X-ME-IP: 90.11.190.129 From: Christophe JAILLET To: broonie@kernel.org, matthias.bgg@gmail.com, gregkh@linuxfoundation.org, neil@brown.name, blogic@openwrt.org Cc: linux-spi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Christophe JAILLET Subject: [PATCH 0/4] spi: mt7621: Fix an erroneous message + clean-ups Date: Sat, 27 Aug 2022 13:41:39 +0200 Message-Id: X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220827_044154_507600_3880B30A X-CRM114-Status: UNSURE ( 6.25 ) 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 Patch 1 fixes an issue about an error code that is erroneously logged. Patch 2-4 are just clean-ups spotted while fixing it. Additional comments are added below --- in patches 2 and 3. Christophe JAILLET (4): spi: mt7621: Fix an error message in mt7621_spi_probe() spi: mt7621: Use the devm_clk_get_enabled() helper to simplify error handling spi: mt7621: Use devm_spi_register_controller() spi: mt7621: Remove 'clk' from 'struct mt7621_spi' drivers/spi/spi-mt7621.c | 42 ++++++---------------------------------- 1 file changed, 6 insertions(+), 36 deletions(-)