git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
This commit was manufactured by cvs2svn to create tag
[linux-2.6.git]
/
drivers
/
char
/
mwave
/
mwavedd.c
diff --git
a/drivers/char/mwave/mwavedd.c
b/drivers/char/mwave/mwavedd.c
index
1a332b2
..
f236538
100644
(file)
--- a/
drivers/char/mwave/mwavedd.c
+++ b/
drivers/char/mwave/mwavedd.c
@@
-466,6
+466,7
@@
static struct file_operations mwave_fops = {
static struct miscdevice mwave_misc_dev = { MWAVE_MINOR, "mwave", &mwave_fops };
static struct miscdevice mwave_misc_dev = { MWAVE_MINOR, "mwave", &mwave_fops };
+#if 0 /* totally b0rked */
/*
* sysfs support <paulsch@us.ibm.com>
*/
/*
* sysfs support <paulsch@us.ibm.com>
*/
@@
-499,6
+500,7
@@
static struct device_attribute * const mwave_dev_attrs[] = {
&dev_attr_uart_irq,
&dev_attr_uart_io,
};
&dev_attr_uart_irq,
&dev_attr_uart_io,
};
+#endif
/*
* mwave_init is called on module load
/*
* mwave_init is called on module load
@@
-508,11
+510,11
@@
static struct device_attribute * const mwave_dev_attrs[] = {
*/
static void mwave_exit(void)
{
*/
static void mwave_exit(void)
{
- int i;
pMWAVE_DEVICE_DATA pDrvData = &mwave_s_mdd;
PRINTK_1(TRACE_MWAVE, "mwavedd::mwave_exit entry\n");
pMWAVE_DEVICE_DATA pDrvData = &mwave_s_mdd;
PRINTK_1(TRACE_MWAVE, "mwavedd::mwave_exit entry\n");
+#if 0
for (i = 0; i < pDrvData->nr_registered_attrs; i++)
device_remove_file(&mwave_device, mwave_dev_attrs[i]);
pDrvData->nr_registered_attrs = 0;
for (i = 0; i < pDrvData->nr_registered_attrs; i++)
device_remove_file(&mwave_device, mwave_dev_attrs[i]);
pDrvData->nr_registered_attrs = 0;
@@
-521,6
+523,7
@@
static void mwave_exit(void)
device_unregister(&mwave_device);
pDrvData->device_registered = FALSE;
}
device_unregister(&mwave_device);
pDrvData->device_registered = FALSE;
}
+#endif
if ( pDrvData->sLine >= 0 ) {
unregister_serial(pDrvData->sLine);
if ( pDrvData->sLine >= 0 ) {
unregister_serial(pDrvData->sLine);
@@
-638,6
+641,7
@@
static int __init mwave_init(void)
}
/* uart is registered */
}
/* uart is registered */
+#if 0
/* sysfs */
memset(&mwave_device, 0, sizeof (struct device));
snprintf(mwave_device.bus_id, BUS_ID_SIZE, "mwave");
/* sysfs */
memset(&mwave_device, 0, sizeof (struct device));
snprintf(mwave_device.bus_id, BUS_ID_SIZE, "mwave");
@@
-655,6
+659,7
@@
static int __init mwave_init(void)
}
pDrvData->nr_registered_attrs++;
}
}
pDrvData->nr_registered_attrs++;
}
+#endif
/* SUCCESS! */
return 0;
/* SUCCESS! */
return 0;