From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adrian Bunk Subject: [-mm patch] drivers/scsi/ch.c: remove devfs stuff Date: Sat, 11 Jun 2005 22:22:11 +0200 Message-ID: <20050611202211.GO3770@stusta.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailout.stusta.mhn.de ([141.84.69.5]:59654 "HELO mailout.stusta.mhn.de") by vger.kernel.org with SMTP id S261826AbVFKUWT (ORCPT ); Sat, 11 Jun 2005 16:22:19 -0400 Content-Disposition: inline Sender: linux-scsi-owner@vger.kernel.org List-Id: linux-scsi@vger.kernel.org To: Gerd Knorr Cc: Andrew Morton , linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org It seems very unlikely that this driver will go into any stable kernel before devfs will be removed. Signed-off-by: Adrian Bunk --- linux-2.6.12-rc6-mm1-full/drivers/scsi/ch.c.old 2005-06-11 21:02:32.000000000 +0200 +++ linux-2.6.12-rc6-mm1-full/drivers/scsi/ch.c 2005-06-11 21:03:57.000000000 +0200 @@ -20,7 +20,6 @@ #include #include #include -#include #include #include #include /* here are all the ioctls */ @@ -940,8 +939,6 @@ if (init) ch_init_elem(ch); - devfs_mk_cdev(MKDEV(SCSI_CHANGER_MAJOR,ch->minor), - S_IFCHR | S_IRUGO | S_IWUGO, ch->name); class_device_create(ch_sysfs_class, MKDEV(SCSI_CHANGER_MAJOR,ch->minor), dev, "s%s", ch->name); @@ -974,7 +971,6 @@ class_device_destroy(ch_sysfs_class, MKDEV(SCSI_CHANGER_MAJOR,ch->minor)); - devfs_remove(ch->name); kfree(ch->dt); kfree(ch); ch_devcount--;