Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2708189pxj; Mon, 31 May 2021 08:45:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyaf76Z36GJKBdkbiYw7NzNN0SYAn8OJeBKgyhKTvTYnDUgsT7zI4+g9sywHD9MGT+WkbqP X-Received: by 2002:a17:907:1ca9:: with SMTP id nb41mr23638217ejc.279.1622475938350; Mon, 31 May 2021 08:45:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622475938; cv=none; d=google.com; s=arc-20160816; b=AJ9rkzDlJPM1+P+u6hegbWiDvpWcg2wdcYxGDgwt18OKs/0AhAhIi/p0kOG7JIDuxp 2bNhL8mflyz0NNBen8sloTKtSe+X3HNQ3e3qco81EaeanTiN4XgyysrZK4kNZDgygznw eqyovI0xS6tvSpIeU6A7PEtZTszlQFeAd4OoBhCvJQTDFt0iJPAs6njLWD2d5wrZ8IAJ oBbue0l5LezYy5NE4nN/hSKMvGIKHJuAymTsQbfAyzqlINNPXhynSx0oPpVg6vcNwUNc d7iuvlqXjKIxZYJFplClva3eRCRamiKLahjXb2m05HFlQwH8EY5uZRFUA3W2G2u0SMpr s8/w== 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=DMiSUUGeGIcSi4wIY8zJb/3RuL9kC46Bzi6vQjgJrkJ/P8PvbELKRdAGNJi0gl/+Sn uq0JRHeYHzC28UqQg7744eM4t5laE7jgZs0CXhAivYgg85puYwh0WQs4LFbEw5X9w9ey x+BFNdTiJX5Cy/e/RqnBxKmelSFDhhRgg+Bhl27B/S7siZ6s5vmnfv2ZTJc1Cfuud/4g mfU6jnqQoA1uchJsdiVCNkY3TR5d3BB/wzY2V2nE4kNGXWlI3YRn0VZfG1N25m1PK0Pj awgFXl6ezVMPWn963k3/FYnkQ2FFusAB92r5peB7MqF/GzuFJrpNTSGs5Gj3SsrLTEe6 +gjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=uvkD1gbE; 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 y14si11375947edc.428.2021.05.31.08.45.16; Mon, 31 May 2021 08:45:38 -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=uvkD1gbE; 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 S233069AbhEaPny (ORCPT + 99 others); Mon, 31 May 2021 11:43:54 -0400 Received: from mail.kernel.org ([198.145.29.99]:47632 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233614AbhEaOZD (ORCPT ); Mon, 31 May 2021 10:25:03 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id DE39B61A19; Mon, 31 May 2021 13:46:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1622468780; bh=1NEL+GcIiRtjPVEvr2hIegNN3AwAHmDg7Vo8080uR6A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=uvkD1gbE9vQgOPn6bG8/gJS86QK67ybzyQBHpFZXE0N0NGa/mOmQ+kQy/t0cfFNUO wNJ4ZZ/180sG+ADCcq+EURHxCtveBiRaTo0UnrtSzdu9Na77+HcDhieBzUGiVudYb2 NVfERGucd7C0LyBvt5OyejRFTelORWXfm9CuwBQI= 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.4 090/177] Revert "serial: max310x: pass return value of spi_register_driver" Date: Mon, 31 May 2021 15:14:07 +0200 Message-Id: <20210531130651.007865053@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210531130647.887605866@linuxfoundation.org> References: <20210531130647.887605866@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