Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2742350pxj; Mon, 31 May 2021 09:35:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw4S/yPHB/lTfAyAptksCkuJ8XpP1QnDCuDmte+2eW66nOBEUON/mvOQRA+BYPv8uGQWMLh X-Received: by 2002:aa7:cf19:: with SMTP id a25mr26717980edy.336.1622478943263; Mon, 31 May 2021 09:35:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622478943; cv=none; d=google.com; s=arc-20160816; b=ARoZ/Sg/KC/rjD771oDNeirXMhv/LPU/i5kHc1pgEtBA3j+vgFXIXbIjfqWrPVcj3c hdS3PjoLFQJl+/YpRkQANDqvyAqZzJrErKj2N06ksLNzYZwkzO1hr1CEvkz/2GEd9mUq JdhKFphrXKrXpwX45FvpOsJvbYt7Hl+q0B1RFPwhfCYcTIJ7TsR+8O9mN5g1MZsAr8Pp aU0wbvFdzYDUMMQ0uwXh4DIkMizfsqSJ2pZ/dXvGMASPtNxq77HdIYy/aHPolhZfHLxv fi+aPPZrZCutpKiAfnnqylQu2aIJUEijDw+dGIGDPPDkIwg+t8AfSLGvlMkYCzjhML7g xuLw== 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=2R7UUxqa4/tLBKrhAhLoS2yyfQMVe+K5tgb1aTMGdvI=; b=PjeFPYNUtcUEttxdgKhbPPe24vEyLaD3EvTpq5DiriAB4rGUJENbcBj3o3okt/loQ6 LYK2CabS4JcnaM4ESwin4YlrgaBTGQFar62F8OoodlqHFAdFCu8SukW7FjOU3U1RrlcW 5Y7UtNiiMYKTsZ/vvwLOkgX/Mu0nXjK1UsA6hN6UiPZntYIcXLYuZVwb92ufZZFLFNSY clR+aclcwmZOg8tyt2Xz8RCKHUIrWN/Wr62gIVZ6x6mUVBBsE/XoDuD+GBMjKLtWpzwn xaT9q+IACKeQ/A4+vnpgzSAzegdk+Kn1GzsIdUlpanAlvbQAfgO6A6S1sliwdf1ntoUr nJhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=NZ580y8U; 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 bc14si1427584edb.374.2021.05.31.09.35.19; Mon, 31 May 2021 09:35:43 -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=NZ580y8U; 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 S234837AbhEaQfn (ORCPT + 99 others); Mon, 31 May 2021 12:35:43 -0400 Received: from mail.kernel.org ([198.145.29.99]:40310 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232912AbhEaOrK (ORCPT ); Mon, 31 May 2021 10:47:10 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id BF66761C8D; Mon, 31 May 2021 13:55:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1622469355; bh=3sJWlWwJts/OZe86uPzAEUSOBxJPp9sIBwTodNo2VCs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=NZ580y8UFqIsaPJtoWTjGwLizQ94Aj85AZyGGhk6rsVuq2IZzcgH1j6CraGolnuv1 RAKqTJDeN2iuAcrtB7RuN/BYZJhXgSWpxcbIB+mDCZK1lqdF/eDiGpKIcm4LXQng6r k2NbKyjUUoFgw0WJaQ7F9Yto46aJrAOjuzisMJJw= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Kangjie Lu , Jiri Slaby , Sasha Levin Subject: [PATCH 5.12 165/296] Revert "serial: max310x: pass return value of spi_register_driver" Date: Mon, 31 May 2021 15:13:40 +0200 Message-Id: <20210531130709.411875449@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210531130703.762129381@linuxfoundation.org> References: <20210531130703.762129381@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: Greg Kroah-Hartman [ Upstream commit b0a85abbe92e1a6f3e8580a4590fa7245de7090b ] This reverts commit 51f689cc11333944c7a457f25ec75fcb41e99410. Because of recent interactions with developers from @umn.edu, all commits from them have been recently re-reviewed to ensure if they were correct or not. Upon review, this commit was found to be incorrect for the reasons below, so it must be reverted. It will be fixed up "correctly" in a later kernel change. This change did not properly unwind from the error condition, so it was not correct. Cc: Kangjie Lu Acked-by: Jiri Slaby Link: https://lore.kernel.org/r/20210503115736.2104747-11-gregkh@linuxfoundation.org Signed-off-by: Greg Kroah-Hartman Signed-off-by: Sasha Levin --- drivers/tty/serial/max310x.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/tty/serial/max310x.c b/drivers/tty/serial/max310x.c index 1b61d26bb7af..93f69b66b896 100644 --- a/drivers/tty/serial/max310x.c +++ b/drivers/tty/serial/max310x.c @@ -1518,10 +1518,10 @@ static int __init max310x_uart_init(void) return ret; #ifdef CONFIG_SPI_MASTER - ret = spi_register_driver(&max310x_spi_driver); + spi_register_driver(&max310x_spi_driver); #endif - return ret; + return 0; } module_init(max310x_uart_init); -- 2.30.2