Commit c32a4e06 authored by Alexander Beregalov's avatar Alexander Beregalov Committed by Greg Kroah-Hartman

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: default avatarAlexander Beregalov <a.beregalov@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent a3d97c9b
config USB_CPC config USB_CPC
tristate "CPC CAN USB driver" tristate "CPC CAN USB driver"
depends on USB depends on USB && PROC_FS
default n default n
...@@ -30,9 +30,7 @@ ...@@ -30,9 +30,7 @@
#include <linux/version.h> #include <linux/version.h>
#ifdef CONFIG_PROC_FS #include <linux/proc_fs.h>
# include <linux/proc_fs.h>
#endif
#include "cpc.h" #include "cpc.h"
...@@ -57,10 +55,6 @@ MODULE_LICENSE("GPL v2"); ...@@ -57,10 +55,6 @@ MODULE_LICENSE("GPL v2");
#define USB_CPCUSB_M16C_PRODUCT_ID 0x0888 #define USB_CPCUSB_M16C_PRODUCT_ID 0x0888
#define USB_CPCUSB_LPC2119_PRODUCT_ID 0x0444 #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" #define CPC_USB_PROC_DIR CPC_PROC_DIR "cpc-usb"
static struct proc_dir_entry *procDir; static struct proc_dir_entry *procDir;
......
...@@ -15,9 +15,7 @@ ...@@ -15,9 +15,7 @@
#define CPC_MSG_BUF_CNT 1500 #define CPC_MSG_BUF_CNT 1500
#ifdef CONFIG_PROC_FS #define CPC_PROC_DIR "driver/"
# define CPC_PROC_DIR "driver/"
#endif
#undef dbg #undef dbg
#undef err #undef err
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment