Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp1153460pxv; Fri, 23 Jul 2021 00:46:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx0meJMcjYuAacLc1gM+AFz6tyNajb25r7uFbrkhxM89VmzelCdkcyD0oZ36EnORUqySYAn X-Received: by 2002:a05:6402:22cf:: with SMTP id dm15mr4038245edb.280.1627026392935; Fri, 23 Jul 2021 00:46:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627026392; cv=none; d=google.com; s=arc-20160816; b=t33pPuEUQTGvPhFUqI3moY7x9tw12udTprh6mjvJhpemGp1uipzCjgVdkuGxNkYMzK zfIwtorpiIjkwh4JbpApi2J7nzRwNGKambsHKIILqGyQT2JDtkDwGq6g8NQVeQK5LZ6S T1cxs0HjU5HAIX8Rk8LE0e6LzXd5dpbAwui7RCXNEiV7B7f7QlWsfirf7+GQISnP6U/2 lg9jiYv5uTJC5os7t8C8bDsxrZqWhXkYvxBaIB0NUq7PZ/F2eO5yJ2NRXOe3g5MAvEd0 CLk58BF1d8bI+mMYs8JsskOp1qtWXkKHQUOdkX3RPApT7SzOOYEL8ighqbJn7B9G13qk 279g== 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:dkim-signature; bh=7cIEi2isQm2jMxTVsxhNhXIEo6JubJYloVdowmH38ZI=; b=Tuyl8QVV3ov3fDdX53EgH0yxKTJjT8cYZRxUEokgGjKZ2Cap3FUc60IroGw2X3f8Ru UYAj5qt4d0+4vNxvPHA3X7FSPJKt2Gy2JpVy/xvCOfZ6YTdFeaAYlc3QRw3X7jw2xV5Y sYCxNHA8MtChFbfa7cYTpjrp9PwUqU/yw86unmy98EMbYEhKXb4BGja/1X2qMwIhTM/K cHvVKfjOdxGTVowjMBcNUY7/Ws3Gbc6LwFb43bZ7Q2VWnCMcngZcMthd/UOtpZYGvgcp 2SQUI+VpADe8rv9AOXHcHwfpUGUmVw/RzvWGdvnzJMDrY1IwlVttTh3KtdOoCcyVfYfY nNZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=jiV+wpGx; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b=bTXYvaIJ; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x23si34239199eds.52.2021.07.23.00.46.10; Fri, 23 Jul 2021 00:46:32 -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=@suse.cz header.s=susede2_rsa header.b=jiV+wpGx; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b=bTXYvaIJ; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234238AbhGWHC5 (ORCPT + 99 others); Fri, 23 Jul 2021 03:02:57 -0400 Received: from smtp-out1.suse.de ([195.135.220.28]:55420 "EHLO smtp-out1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233625AbhGWHCr (ORCPT ); Fri, 23 Jul 2021 03:02:47 -0400 Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out1.suse.de (Postfix) with ESMTP id 7FCE6225F9; Fri, 23 Jul 2021 07:43:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1627026200; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=7cIEi2isQm2jMxTVsxhNhXIEo6JubJYloVdowmH38ZI=; b=jiV+wpGxtLb6LAJHWfKs6gaDnfj0aE2Am+6UEdaY5KcVQ26Q3IQjs4hJt99S1k7AsyYVe1 EzhgEP8Ly2+Wa563SsO1E696XOJTTA0Za9R9r4SI7rieVIYwuiCpS184oceOYVDd0uB+vi olp3MN2pS5T82lCvQMdMsVUTDHY4vtk= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1627026200; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=7cIEi2isQm2jMxTVsxhNhXIEo6JubJYloVdowmH38ZI=; b=bTXYvaIJkJCWG/n1miyz8gKoyJ23ncfSXFCcuXA34tz3JTAyQIxs0rR94+0fTl2rOsG9aj 19W1DEq0N9sL88AA== Received: from localhost.localdomain (unknown [10.100.201.122]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by relay2.suse.de (Postfix) with ESMTPS id 6595BA3B93; Fri, 23 Jul 2021 07:43:20 +0000 (UTC) From: Jiri Slaby To: gregkh@linuxfoundation.org Cc: linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, Jiri Slaby Subject: [PATCH 5/8] tty: drop alloc_tty_driver Date: Fri, 23 Jul 2021 09:43:14 +0200 Message-Id: <20210723074317.32690-6-jslaby@suse.cz> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210723074317.32690-1-jslaby@suse.cz> References: <20210723074317.32690-1-jslaby@suse.cz> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Noone uses this deprecated function now. So we can remove it. Signed-off-by: Jiri Slaby --- include/linux/tty_driver.h | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/include/linux/tty_driver.h b/include/linux/tty_driver.h index a798e7f8890a..c7746dee58a6 100644 --- a/include/linux/tty_driver.h +++ b/include/linux/tty_driver.h @@ -340,18 +340,6 @@ extern void tty_driver_kref_put(struct tty_driver *driver); #define tty_alloc_driver(lines, flags) \ __tty_alloc_driver(lines, THIS_MODULE, flags) -/* - * DEPRECATED Do not use this in new code, use tty_alloc_driver instead. - * (And change the return value checks.) - */ -static inline struct tty_driver *alloc_tty_driver(unsigned int lines) -{ - struct tty_driver *ret = tty_alloc_driver(lines, 0); - if (IS_ERR(ret)) - return NULL; - return ret; -} - static inline struct tty_driver *tty_driver_kref_get(struct tty_driver *d) { kref_get(&d->kref); -- 2.32.0