Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2665637pxj; Mon, 31 May 2021 07:46:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwxPA8VS5aaTJF83Kggx9KkoUqapgBW1aJh2LpTGLijTdXQayE1Q24aI9MHpxd1UqzYX53E X-Received: by 2002:a50:fd0d:: with SMTP id i13mr26207131eds.163.1622472406457; Mon, 31 May 2021 07:46:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622472406; cv=none; d=google.com; s=arc-20160816; b=K216EiVEfLSWBEC/zPygXa63Pd/hr3ntUa9nO3t9pxkygrnZVM0f4NU1JtAUQh2MhU v3u7/p6Vl/pgWK+0nzfyIgP0uahtWcxV9WYKpi7QzE10yO55DsApA4R64P98SFfGdeQo Hdw6Tju2YgCiJVjHkriwjd1TC064pWdpL8BJSOOV6Kdn1yN7Z77vNmf8n6AURwKjjlno doQAzvLXSpSog2xMRRyG96AqzF7qTdu/JmeZKpspR+OJn7TZe4HRQXcNoVNOzIzCLOVq mFyJiBG8vd1xTiJ7WWyCM2L59d+q+3jIjnJUwJ9KI+m/czwSHKEiwAhisnSA1MdFshBB NG5w== 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=8jXeQChqEtLRA7t5wExxQMrsLW6GnmkaN+YsA95PjNw=; b=i4KEH6HaQNj8thJcfVd//JKAjyG06vuxwD1rwKZjw7E97cDjiIdg+ljIhsZiAQnTPy 4eRyK2t58y+fQSObW3UvrwByJfQH6P2F0DDCw9hHjjFsRRXpQ38mxXEVKE5JIw6RcsCf rBdaEMNb62JhNMMgrYEjT4y2W/KWhGqZI4nyAlJK7x0gWqcuuq0x9uxPSXSz28IiNPHu C3kB6UwUxuOr4KxO/1U7Q0PLk/+mLNm1s1a06j1Sg5YTVM0CnLbb+9y9JKjx+KLKg3r8 UA6P7gBmpeQZ2CY779BpI+HwaNnGVXYt1EZCnou6ejeRy20j/xd4tG155htKOU0FII0F AFRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=lXifVzb8; 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 m26si8780799edp.349.2021.05.31.07.46.23; Mon, 31 May 2021 07:46:46 -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=lXifVzb8; 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 S234058AbhEaOo2 (ORCPT + 99 others); Mon, 31 May 2021 10:44:28 -0400 Received: from mail.kernel.org ([198.145.29.99]:59500 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232377AbhEaN7J (ORCPT ); Mon, 31 May 2021 09:59:09 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id D861D61444; Mon, 31 May 2021 13:35:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1622468151; bh=1NEL+GcIiRtjPVEvr2hIegNN3AwAHmDg7Vo8080uR6A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lXifVzb8+5X7Ncxyw4Kdpqha7xzjkPlD3NhuwK+FK5mKOYdUVUbROAfFSjnf8Y0ix zlzJOgGyNkAobC1uV3bUTNBNC7TlC7857IW5a95dGX9WnDT0x/bJPar9MWLVibWZHL eCEtzo0AFQ/upJ2fLAZ1RvwIYueGoVM4k9tOs2CI= 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.10 135/252] Revert "serial: max310x: pass return value of spi_register_driver" Date: Mon, 31 May 2021 15:13:20 +0200 Message-Id: <20210531130702.604850571@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210531130657.971257589@linuxfoundation.org> References: <20210531130657.971257589@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 8434bd5a8ec7..f60b7b86d099 100644 --- a/drivers/tty/serial/max310x.c +++ b/drivers/tty/serial/max310x.c @@ -1527,10 +1527,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