Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp2695111pxy; Mon, 3 May 2021 06:07:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzPnyiQ3t6VfWJVgWYcxC+FyGGw9tDSgHFbotH/7ps63YVyx0O0ON9UBFI9LD2bsq4w7SSb X-Received: by 2002:a17:902:bc88:b029:ee:7ef1:e770 with SMTP id bb8-20020a170902bc88b02900ee7ef1e770mr20463827plb.19.1620047270023; Mon, 03 May 2021 06:07:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620047270; cv=none; d=google.com; s=arc-20160816; b=d4kRttOns06qQz2r7lMxmTInwIOEFg0z2GJwKAameODl1HQwpr6qUV63ZjF1Iw2QDJ 1s30ml3D4VzvKtSBlHKxjgeK/NyV63emTSfCEzvvAIWmxZ8YboXPVbMhJlbLiz2wLHiZ ksBXuJht9fcbbg8kv92+o//m8oVlih4S0JaSoo40hhSfw7l0k3Xmj8AsJRWdJJcEbXaH bsZdl3FuH0tUqF5R6Iop+qFWA9d8ZOybQlY4ocjhEhZL5DzEWdJNdei+uw1ZY5pV7PSU SfCV8gox4nz2zxeQ5MyINvaXjml2to7uBASOvhrZzMJ/GWhOql+KS3Tz2PPl/awZtpof K9+g== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=dTUIluSaanAIEY8Q4AWsZjDSu7GW2SDXLNn0Tn7tTrA=; b=MB0lyf7ZjbtjXgqyYeqUsyJcxlC4lS4vCjtXlWi9NX2+EHuzzMIOZ5q2Xm90IF3by4 UV30MC81FF11l2WrrgLZfsSrSnihOoKStlIUQKaQG+l+wsp8tzbslxtQ1ldWHlr9Q5yw +PPMXxZpPxZwBWo0zW1VitjILlX4Nlqfx4UdbnmhCBkFGgEyMBJv2UyvEIoRb9GloSf0 Q9o8uLtaghGPh55LkfyeOIwm6Mb0GsHy5ZVJlfI9Z/leeuG4wsprzlTByy7fAMgqADbm FukGlCpiW+T331MOovrJrZyLSdj1f4l3CiMP4ilmEQb0CYT12+D+dxdEHxrCDbTYJzKI 2KGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=UmNk5DQk; 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 g5si26352530pjp.31.2021.05.03.06.07.30; Mon, 03 May 2021 06:07:50 -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=UmNk5DQk; 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 S233691AbhECMBi (ORCPT + 99 others); Mon, 3 May 2021 08:01:38 -0400 Received: from mail.kernel.org ([198.145.29.99]:34766 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233771AbhECMA6 (ORCPT ); Mon, 3 May 2021 08:00:58 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 4E6496135C; Mon, 3 May 2021 12:00:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1620043205; bh=KdUHwxkIFiD0jf+mGXeEl/ZC/+KMZxkVoV0Jve9l4m4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UmNk5DQkqftTavnZMnlb8K54sX4SfzUZLy3lEmYWfALsLoZxjBLzAGP3HEePMbs6I tLplutvFMu5R91tmq8IBm5qiLP4fZ0C7rbNWdRqfu0C2p0ebIG33skOXIBeDlDAzUj 1ocOCOvBg5s/9ebLiFnkkNDdGOoibH6Kc3U4u8z4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , Kangjie Lu , Jiri Slaby Subject: [PATCH 10/69] Revert "serial: max310x: pass return value of spi_register_driver" Date: Mon, 3 May 2021 13:56:37 +0200 Message-Id: <20210503115736.2104747-11-gregkh@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210503115736.2104747-1-gregkh@linuxfoundation.org> References: <20210503115736.2104747-1-gregkh@linuxfoundation.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Signed-off-by: Greg Kroah-Hartman --- 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 8534d6e45a1d..a3ba0e6520a1 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.31.1