From patchwork Sun Nov 27 17:39:22 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tilman Schmidt X-Patchwork-Id: 127897 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 7DA9DB6F65 for ; Mon, 28 Nov 2011 05:23:45 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752694Ab1K0SX2 (ORCPT ); Sun, 27 Nov 2011 13:23:28 -0500 Received: from gimli.pxnet.com ([89.1.7.7]:58209 "EHLO mail.pxnet.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751954Ab1K0SX0 (ORCPT ); Sun, 27 Nov 2011 13:23:26 -0500 X-Greylist: delayed 394 seconds by postgrey-1.27 at vger.kernel.org; Sun, 27 Nov 2011 13:23:26 EST Received: from xenon.ts.pxnet.com (p57A5611C.dip.t-dialin.net [87.165.97.28]) (user=ts author=<> mech=DIGEST-MD5 bits=0) by mail.pxnet.com (8.13.8/8.13.8) with ESMTP id pARIGYEh019173 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sun, 27 Nov 2011 19:16:37 +0100 Received: by xenon.ts.pxnet.com (Postfix, from userid 1000) id 920CB140055; Sun, 27 Nov 2011 19:13:52 +0100 (CET) From: Tilman Schmidt To: Karsten Keil , David Miller CC: Hansjoerg Lipp , Karsten Keil , i4ldeveloper@listserv.isdn4linux.de, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Date: Sun, 27 Nov 2011 18:39:22 +0100 Message-ID: <20111127-patch-gigaset-01.tilman@imap.cc> Subject: [PATCH] isdn/gigaset: report ISDN4Linux interface only once X-Scanned-By: MIMEDefang 2.70 on 89.1.7.7 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Move the "ISDN4Linux interface" message from device registration, where it is emitted for each device, to driver registration, where it is emitted only once, for consistency with the CAPI variant. Signed-off-by: Tilman Schmidt --- drivers/isdn/gigaset/i4l.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/drivers/isdn/gigaset/i4l.c b/drivers/isdn/gigaset/i4l.c index 04231cb..1793ba1 100644 --- a/drivers/isdn/gigaset/i4l.c +++ b/drivers/isdn/gigaset/i4l.c @@ -624,8 +624,6 @@ int gigaset_isdn_regdev(struct cardstate *cs, const char *isdnid) { isdn_if *iif; - pr_info("ISDN4Linux interface\n"); - iif = kmalloc(sizeof *iif, GFP_KERNEL); if (!iif) { pr_err("out of memory\n"); @@ -684,6 +682,7 @@ void gigaset_isdn_unregdev(struct cardstate *cs) */ void gigaset_isdn_regdrv(void) { + pr_info("ISDN4Linux interface\n"); /* nothing to do */ }