Package: mga-vid-source
Version: 2.6.20-2
Severity: normal

Seems that in version 2.6.24 of the linux kernel some kobject and pci
functions and structures had changed. I'm not a kernel hacker but the
following patch works for me.


--------------8<-----------------8<---------------8<-----------------8<-------------------------
--- /tmp/mga_vid.c      2007-03-18 15:20:12.000000000 +0100
+++ mga_vid.c   2008-02-03 15:09:02.000000000 +0100
@@ -827,7 +827,7 @@
        char *mga_dev_name;
        mga_card_t * card;
 
-       while((dev = pci_find_device(PCI_VENDOR_ID_MATROX, PCI_ANY_ID, dev)))
+       while((dev = pci_get_device(PCI_VENDOR_ID_MATROX, PCI_ANY_ID, dev)))
        {
                mga_dev_name = "";
                mga_cards_num++;
@@ -1163,7 +1163,7 @@
                /* Allocate a cdev for this character device, and fill in some 
parameters it needs */
                mga_vid_cdev = cdev_alloc();
                mga_vid_cdev->owner = THIS_MODULE;
-               strcpy(mga_vid_cdev->kobj.name, MODULENAME);
+               kobject_set_name(&mga_vid_cdev->kobj,MODULENAME);
                mga_vid_cdev->ops = &mga_vid_fops;
                /* Add this character device to the system */
                cdev_add(mga_vid_cdev, mga_cdev_handle, mga_cards_num);
--------------8<-----------------8<---------------8<-----------------8<-------------------------


-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.24-1-686 (SMP w/1 CPU core)
Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15)
Shell: /bin/sh linked to /bin/bash

mga-vid-source depends on no packages.

Versions of packages mga-vid-source recommends:
ii  debhelper                     6.0.4      helper programs for debian/rules
ii  kernel-package                11.001-0.1 A utility for building Linux kerne
ii  module-assistant              0.10.11.0  tool to make module package creati

-- no debconf information



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to