Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261395AbUKJBPu (ORCPT ); Tue, 9 Nov 2004 20:15:50 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261816AbUKJBPt (ORCPT ); Tue, 9 Nov 2004 20:15:49 -0500 Received: from coyote.holtmann.net ([217.160.111.169]:32678 "EHLO mail.holtmann.net") by vger.kernel.org with ESMTP id S261395AbUKJBPo (ORCPT ); Tue, 9 Nov 2004 20:15:44 -0500 Subject: Re: [PATCH] remove explicit k_name use in atmel_cs.c, bt3c_cs.c From: Marcel Holtmann To: Andries Brouwer Cc: Linus Torvalds , Andrew Morton , Linux Kernel Mailing List In-Reply-To: <20041110005941.GA9336@apps.cwi.nl> References: <20041110005941.GA9336@apps.cwi.nl> Content-Type: text/plain Date: Wed, 10 Nov 2004 02:15:18 +0100 Message-Id: <1100049318.25879.13.camel@pegasus> Mime-Version: 1.0 X-Mailer: Evolution 2.0.2 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1188 Lines: 32 > diff -uprN -X /linux/dontdiff a/drivers/bluetooth/bt3c_cs.c b/drivers/bluetooth/bt3c_cs.c > --- a/drivers/bluetooth/bt3c_cs.c 2004-08-26 22:05:15.000000000 +0200 > +++ b/drivers/bluetooth/bt3c_cs.c 2004-11-10 01:23:01.000000000 +0100 > @@ -489,13 +489,10 @@ static int bt3c_hci_ioctl(struct hci_dev > > static struct device *bt3c_device(void) > { > - static char *kobj_name = "bt3c"; > - > static struct device dev = { > .bus_id = "pcmcia", > }; > - dev.kobj.k_name = kmalloc(strlen(kobj_name) + 1, GFP_KERNEL); > - strcpy(dev.kobj.k_name, kobj_name); > + kobject_set_name(&dev.kobj, "bt3c"); > kobject_init(&dev.kobj); > > return &dev; The part for the bt3c_cs driver is fine with me and I have no problem if Andrew picks this up and sends it to Linus for final inclusion. Once the PCMCIA subsystem if fully integrated into the device model this will go away anyway. Signed-off-by: Marcel Holtmann - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/