From patchwork Fri Jan 6 16:26:29 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Rob Herring \(Arm\)" X-Patchwork-Id: 90196 Delivered-To: patch@linaro.org Received: by 10.140.20.101 with SMTP id 92csp9519595qgi; Fri, 6 Jan 2017 08:27:12 -0800 (PST) X-Received: by 10.99.160.109 with SMTP id u45mr18883532pgn.17.1483720032803; Fri, 06 Jan 2017 08:27:12 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u22si55540953plj.69.2017.01.06.08.27.12 for ; Fri, 06 Jan 2017 08:27:12 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759103AbdAFQ05 (ORCPT ); Fri, 6 Jan 2017 11:26:57 -0500 Received: from mail-oi0-f67.google.com ([209.85.218.67]:33231 "EHLO mail-oi0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751402AbdAFQ0s (ORCPT ); Fri, 6 Jan 2017 11:26:48 -0500 Received: by mail-oi0-f67.google.com with SMTP id j15so2242038oih.0; Fri, 06 Jan 2017 08:26:48 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=iV98dR1Z2FfIstcpChMbKxRJ4mJ67yZjg9yNR3F9pqE=; b=XYk9p72W3i8l8sTjPT9LysCFHrC09YGtMzRp6mdO2ra3RHpBPpyUyYKAPtAFDDl5gw /9gdZiWSdgMnphM5w2OQKrZx4sbI//JkoD0TCBptgJrAwi8gwBDRNgtAo1fnL3cJ8sCA Wn/bwofKScETq3MObD6rB1tYBukGJReHIzid3fZGEIt4WwWI8Y6XMTpQa8vReyWHUNXt JCz6wTvMDVHJubFzHvisgTbfaFNdl+KWS/fDZGEW0aizSCR8DwZv/aAwvOML/8XWzJ1n eBblBUbhKwERk3taSjd34nx4nuonnXFBVWxukpGwqIeQ56CEULitcl673Ei6Nt4poaxn Lf6w== X-Gm-Message-State: AIkVDXJLqzUiYq/fkhkhvkhSfn1Qa74L2S5RKfVmkzMujLMWpElDTRNncPSLIxp7pR0iLw== X-Received: by 10.157.54.37 with SMTP id w34mr1649350otb.8.1483720007531; Fri, 06 Jan 2017 08:26:47 -0800 (PST) Received: from rob-hp-laptop.herring.priv (50-233-148-156-static.hfc.comcastbusiness.net. [50.233.148.156]) by smtp.googlemail.com with ESMTPSA id i135sm5245809oib.18.2017.01.06.08.26.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 06 Jan 2017 08:26:47 -0800 (PST) From: Rob Herring To: Greg Kroah-Hartman , Marcel Holtmann , Jiri Slaby , Sebastian Reichel , Arnd Bergmann , "Dr . H . Nikolaus Schaller" , Peter Hurley , Andy Shevchenko , Alan Cox Cc: Loic Poulain , Pavel Machek , NeilBrown , Linus Walleij , linux-bluetooth@vger.kernel.org, linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/9] tty_port: make tty_port_register_device wrap tty_port_register_device_attr Date: Fri, 6 Jan 2017 10:26:29 -0600 Message-Id: <20170106162635.19677-4-robh@kernel.org> X-Mailer: git-send-email 2.10.1 In-Reply-To: <20170106162635.19677-1-robh@kernel.org> References: <20170106162635.19677-1-robh@kernel.org> Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org tty_register_device is just a wrapper for tty_register_device_attr with NULL passed for drvdata and attr_grp. So similarly make tty_port_register_device a wrapper of tty_port_register_device_attr so that additions don't have to be made in both functions. Signed-off-by: Rob Herring --- drivers/tty/tty_port.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) -- 2.10.1 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/tty/tty_port.c b/drivers/tty/tty_port.c index 606d9e5bf28f..1d8804843103 100644 --- a/drivers/tty/tty_port.c +++ b/drivers/tty/tty_port.c @@ -67,8 +67,7 @@ struct device *tty_port_register_device(struct tty_port *port, struct tty_driver *driver, unsigned index, struct device *device) { - tty_port_link_device(port, driver, index); - return tty_register_device(driver, index, device); + return tty_port_register_device_attr(port, driver, index, device, NULL, NULL); } EXPORT_SYMBOL_GPL(tty_port_register_device);