From: Greg Kroah-Hartman Date: Fri, 15 May 2009 03:56:58 +0000 (-0700) Subject: Staging: cpc-usb: fix some build problems in the driver X-Git-Tag: firefly_0821_release~13695^2~55 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=84a209d01c58d74f291efc82e313b132ecec7be0;p=firefly-linux-kernel-4.4.55.git Staging: cpc-usb: fix some build problems in the driver It will now build properly on the latest kernel tree. Cc: Sebastian Haas Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/cpc-usb/cpc-usb_drv.c b/drivers/staging/cpc-usb/cpc-usb_drv.c index a08c6655b86b..b8ef701a2bc5 100644 --- a/drivers/staging/cpc-usb/cpc-usb_drv.c +++ b/drivers/staging/cpc-usb/cpc-usb_drv.c @@ -49,7 +49,7 @@ /* Version Information */ #define DRIVER_AUTHOR "Sebastian Haas " #define DRIVER_DESC "CPC-USB Driver for Linux Kernel 2.6" -#define DRIVER_VERSION CPC_DRIVER_VERSION " (CDKL v" CDKL_VERSION ")" +#define DRIVER_VERSION CPC_DRIVER_VERSION MODULE_AUTHOR(DRIVER_AUTHOR); MODULE_DESCRIPTION(DRIVER_DESC); @@ -1198,7 +1198,6 @@ static int __init CPCUsb_Init(void) if (!procDir) { err("Could not create proc entry"); } else { - procDir->owner = THIS_MODULE; procEntry = create_proc_read_entry("info", 0444, procDir, cpcusb_proc_read_info, NULL); @@ -1206,8 +1205,6 @@ static int __init CPCUsb_Init(void) err("Could not create proc entry %s", CPC_USB_PROC_DIR "/info"); remove_proc_entry(CPC_USB_PROC_DIR, NULL); procDir = NULL; - } else { - procEntry->owner = THIS_MODULE; } }