[PATCH v2] staging: dgnc: removes proc code

2013-08-14 Thread Lidza Louina
This patch removes the dgnc_proc.c file, all references to proc
functions in dgnc_driver.c and from the Makefile's build.

Drivers now use sysfs instead of proc.

Signed-off-by: Lidza Louina lidza.lou...@gmail.com
---
 drivers/staging/dgnc/Makefile  | 2 +-
 drivers/staging/dgnc/dgnc_driver.c | 9 -
 2 files changed, 1 insertion(+), 10 deletions(-)

diff --git a/drivers/staging/dgnc/Makefile b/drivers/staging/dgnc/Makefile
index c4c96dc..888c433 100644
--- a/drivers/staging/dgnc/Makefile
+++ b/drivers/staging/dgnc/Makefile
@@ -4,4 +4,4 @@ obj-$(CONFIG_DGNC) += dgnc.o
 
 dgnc-objs :=   dgnc_cls.o dgnc_driver.o\
dgnc_mgmt.o dgnc_neo.o\
-   dgnc_proc.o dgnc_trace.o dgnc_tty.o dgnc_sysfs.o
+   dgnc_trace.o dgnc_tty.o dgnc_sysfs.o
diff --git a/drivers/staging/dgnc/dgnc_driver.c 
b/drivers/staging/dgnc/dgnc_driver.c
index cf68002..5a61581 100644
--- a/drivers/staging/dgnc/dgnc_driver.c
+++ b/drivers/staging/dgnc/dgnc_driver.c
@@ -313,11 +313,6 @@ static int dgnc_start(void)
}
 
/*
-* Register our basic stuff in /proc/dgnc
-*/
-   dgnc_proc_register_basic_prescan();
-
-   /*
 * Init any global tty stuff.
 */
rc = dgnc_tty_preinit();
@@ -401,8 +396,6 @@ void dgnc_cleanup_module(void)
/* Turn off poller right away. */
del_timer_sync(dgnc_poll_timer);
 
-   dgnc_proc_unregister_all();
-
dgnc_remove_driver_sysfiles(dgnc_driver);
 
if (dgnc_Major_Control_Registered) {
@@ -742,8 +735,6 @@ static int dgnc_found_board(struct pci_dev *pdev, int id)
 */
brd-flipbuf = dgnc_driver_kzmalloc(MYFLIPLEN, GFP_KERNEL);
 
-   dgnc_proc_register_basic_postscan(dgnc_NumBoards);
-
wake_up_interruptible(brd-state_wait);
 
 return(0);
-- 
1.8.1.2

___
devel mailing list
de...@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel


Re: [PATCH v2] staging: dgnc: removes proc code

2013-08-14 Thread Greg KH
On Wed, Aug 14, 2013 at 07:01:49PM -0400, Lidza Louina wrote:
 This patch removes the dgnc_proc.c file, all references to proc
 functions in dgnc_driver.c and from the Makefile's build.
 
 Drivers now use sysfs instead of proc.
 
 Signed-off-by: Lidza Louina lidza.lou...@gmail.com
 ---
  drivers/staging/dgnc/Makefile  | 2 +-
  drivers/staging/dgnc/dgnc_driver.c | 9 -
  2 files changed, 1 insertion(+), 10 deletions(-)

It doesn't look like the dgnc_proc.c file is removed here :(

Also, what about dgnc_proc.h?

Care to try again?

thanks,

greg k-h
___
devel mailing list
de...@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel


Re: [PATCH v2] staging: dgnc: removes proc code

2013-08-14 Thread Lidza Louina
On Wed, Aug 14, 2013 at 7:04 PM, Greg KH gre...@linuxfoundation.org wrote:
 On Wed, Aug 14, 2013 at 07:01:49PM -0400, Lidza Louina wrote:
 This patch removes the dgnc_proc.c file, all references to proc
 functions in dgnc_driver.c and from the Makefile's build.

 Drivers now use sysfs instead of proc.

 Signed-off-by: Lidza Louina lidza.lou...@gmail.com
 ---
  drivers/staging/dgnc/Makefile  | 2 +-
  drivers/staging/dgnc/dgnc_driver.c | 9 -
  2 files changed, 1 insertion(+), 10 deletions(-)

 It doesn't look like the dgnc_proc.c file is removed here :(

 Also, what about dgnc_proc.h?

 Care to try again?

Oops, my mistake. I'll send another version.
___
devel mailing list
de...@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel