mirror of
https://github.com/FEX-Emu/linux.git
synced 2025-01-13 21:02:35 +00:00
Staging: cpc-usb: fix some build problems in the driver
It will now build properly on the latest kernel tree. Cc: Sebastian Haas <haas@ems-wuensche.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
e0ce8a7265
commit
84a209d01c
@ -49,7 +49,7 @@
|
|||||||
/* Version Information */
|
/* Version Information */
|
||||||
#define DRIVER_AUTHOR "Sebastian Haas <haas@ems-wuensche.com>"
|
#define DRIVER_AUTHOR "Sebastian Haas <haas@ems-wuensche.com>"
|
||||||
#define DRIVER_DESC "CPC-USB Driver for Linux Kernel 2.6"
|
#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_AUTHOR(DRIVER_AUTHOR);
|
||||||
MODULE_DESCRIPTION(DRIVER_DESC);
|
MODULE_DESCRIPTION(DRIVER_DESC);
|
||||||
@ -1198,7 +1198,6 @@ static int __init CPCUsb_Init(void)
|
|||||||
if (!procDir) {
|
if (!procDir) {
|
||||||
err("Could not create proc entry");
|
err("Could not create proc entry");
|
||||||
} else {
|
} else {
|
||||||
procDir->owner = THIS_MODULE;
|
|
||||||
procEntry = create_proc_read_entry("info", 0444, procDir,
|
procEntry = create_proc_read_entry("info", 0444, procDir,
|
||||||
cpcusb_proc_read_info,
|
cpcusb_proc_read_info,
|
||||||
NULL);
|
NULL);
|
||||||
@ -1206,8 +1205,6 @@ static int __init CPCUsb_Init(void)
|
|||||||
err("Could not create proc entry %s", CPC_USB_PROC_DIR "/info");
|
err("Could not create proc entry %s", CPC_USB_PROC_DIR "/info");
|
||||||
remove_proc_entry(CPC_USB_PROC_DIR, NULL);
|
remove_proc_entry(CPC_USB_PROC_DIR, NULL);
|
||||||
procDir = NULL;
|
procDir = NULL;
|
||||||
} else {
|
|
||||||
procEntry->owner = THIS_MODULE;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user