#include <linux/types.h>
#include <linux/stddef.h>
#include <linux/timer.h>
+#include <linux/config.h>
#include <linux/init.h>
#include "hisax.h"
#include <linux/module.h>
count = cs->status_end - cs->status_read + 1;
if (count >= len)
count = len;
- if (copy_to_user(p, cs->status_read, count))
- return -EFAULT;
+ copy_to_user(p, cs->status_read, count);
cs->status_read += count;
if (cs->status_read > cs->status_end)
cs->status_read = cs->status_buf;
cnt = HISAX_STATUS_BUFSIZE;
else
cnt = count;
- if (copy_to_user(p, cs->status_read, cnt))
- return -EFAULT;
+ copy_to_user(p, cs->status_read, cnt);
p += cnt;
cs->status_read += cnt % HISAX_STATUS_BUFSIZE;
count -= cnt;
#ifdef CONFIG_PCI
#include <linux/pci.h>
-static struct pci_device_id hisax_pci_tbl[] __devinitdata = {
+static struct pci_device_id hisax_pci_tbl[] __initdata = {
#ifdef CONFIG_HISAX_FRITZPCI
{PCI_VENDOR_ID_AVM, PCI_DEVICE_ID_AVM_A1, PCI_ANY_ID, PCI_ANY_ID},
#endif