Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760731AbXHUO6h (ORCPT ); Tue, 21 Aug 2007 10:58:37 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1758257AbXHUO63 (ORCPT ); Tue, 21 Aug 2007 10:58:29 -0400 Received: from mx2.suse.de ([195.135.220.15]:47385 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757241AbXHUO63 (ORCPT ); Tue, 21 Aug 2007 10:58:29 -0400 Date: Tue, 21 Aug 2007 07:56:52 -0700 From: Tony Jones To: linux-kernel@vger.kernel.org, calle@calle.de, kkeil@suse.de, kay.sievers@vrfy.org Subject: Re: [patch 14/14] Convert from class_device to device for ISDN capi Message-ID: <20070821145652.GA26493@suse.de> References: <20070820224806.154198000@suse.de> <20070820225145.074790000@suse.de> <20070821091412.GA6021@pingi.kke.suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070821091412.GA6021@pingi.kke.suse.de> User-Agent: Mutt/1.5.13 (2006-08-11) Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1873 Lines: 58 On Tue, Aug 21, 2007 at 11:14:12AM +0200, Karsten Keil wrote: > On Mon, Aug 20, 2007 at 03:48:20PM -0700, tonyj@suse.de wrote: > > -- > > Content-Disposition: inline; filename=isdn-capi.patch > > > > Convert from class_device to device for drivers/isdn/capi. This is > > part of the work to eliminate struct class_device. > > > > If you add a Signed-off-by: > I'll ack this patch. Sorry, I added one for the first but the remainders got lost in the cut-paste. -------- Subject: Convert from class_device to device for ISDN capi Convert from class_device to device for drivers/isdn/capi. This is part of the work to eliminate struct class_device. Signed-off-by: Tony Jones --- drivers/isdn/capi/capi.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) --- a/drivers/isdn/capi/capi.c +++ b/drivers/isdn/capi/capi.c @@ -1544,11 +1544,11 @@ static int __init capi_init(void) return PTR_ERR(capi_class); } - class_device_create(capi_class, NULL, MKDEV(capi_major, 0), NULL, "capi"); + device_create(capi_class, NULL, MKDEV(capi_major, 0), "capi"); #ifdef CONFIG_ISDN_CAPI_MIDDLEWARE if (capinc_tty_init() < 0) { - class_device_destroy(capi_class, MKDEV(capi_major, 0)); + device_destroy(capi_class, MKDEV(capi_major, 0)); class_destroy(capi_class); unregister_chrdev(capi_major, "capi20"); return -ENOMEM; @@ -1576,7 +1576,7 @@ static void __exit capi_exit(void) { proc_exit(); - class_device_destroy(capi_class, MKDEV(capi_major, 0)); + device_destroy(capi_class, MKDEV(capi_major, 0)); class_destroy(capi_class); unregister_chrdev(capi_major, "capi20"); - 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/