Staging: cpc-usb: depends on PROC_FS

Fix this build error when PROC_FS is not enabled:
cpc-usb_drv.c:61:2: error: #error "PROCFS needed"
cpc-usb_drv.c:1159: error: implicit declaration of function 'proc_mkdir'

Signed-off-by: Alexander Beregalov <a.beregalov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
Alexander Beregalov 2009-05-21 15:44:45 +04:00 committed by Greg Kroah-Hartman
parent a3d97c9b19
commit c32a4e066c
3 changed files with 3 additions and 11 deletions

View File

@ -1,4 +1,4 @@
config USB_CPC
tristate "CPC CAN USB driver"
depends on USB
depends on USB && PROC_FS
default n

View File

@ -30,9 +30,7 @@
#include <linux/version.h>
#ifdef CONFIG_PROC_FS
# include <linux/proc_fs.h>
#endif
#include <linux/proc_fs.h>
#include "cpc.h"
@ -57,10 +55,6 @@ MODULE_LICENSE("GPL v2");
#define USB_CPCUSB_M16C_PRODUCT_ID 0x0888
#define USB_CPCUSB_LPC2119_PRODUCT_ID 0x0444
#ifndef CONFIG_PROC_FS
#error "PROCFS needed"
#endif
#define CPC_USB_PROC_DIR CPC_PROC_DIR "cpc-usb"
static struct proc_dir_entry *procDir;

View File

@ -15,9 +15,7 @@
#define CPC_MSG_BUF_CNT 1500
#ifdef CONFIG_PROC_FS
# define CPC_PROC_DIR "driver/"
#endif
#define CPC_PROC_DIR "driver/"
#undef dbg
#undef err