Patch: Plustek scanner driver (pt_drv) port to 2.6, correction for 2.6.3

From: large (large_at_lilymarleen.de)
Date: 03/04/04

  • Next message: Jens Axboe: "Re: [PATCH] 2.6 ide-cd DMA ripping"
    Date:	Thu, 04 Mar 2004 16:19:43 +0100
    To: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
    
    
    

    -----BEGIN PGP SIGNED MESSAGE-----
    Hash: SHA1

    Hi,

    I recently updated from 2.6.0-test4 to 2.6.3 and noticed that my pt_drv
    won't work any more. It did not load, telling me something like
    missing symbol: kdev_t_to_nr

    I investigated and found the problem:
    the inline function kdev_t_to_nr does not exist any longer, I think it's
    depr. due to the kdev device changes in 2.6.3 (2.6.2?).

    ptdrv.c:
    255: int minor = MINOR(kdev_t_to_nr(ip->i_rdev));

    Anyway, I could not figure out what function might be it's successor, so
    I simply removed the function call, leading to:

    ptdrv.c:
    225: int minor = MINOR(ip->i_rdev);

    All kdev_t.h functions existing in 2.6.3 did only bad stuff to the
    numbers so think this might be correct.

    I just removed it, as it works for me (and should logically, reviewing
    how the MINOR inline works now). I could not test it with more than one
    scanner device, so it might still be false.

    Anyone out there who can proof whether this is OK like this?

    Attached the changed patch...

    cu,
    ~ Lars
    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.2.3 (GNU/Linux)
    Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

    iD8DBQFAR0kO7V+LJJ0V3jwRAmM6AJkBzA2VciANIfuSUsP+8TqZfpvJ0ACfdfGs
    +AR+ncqsDvRuqZZXGk4L5a8=
    =4DJ7
    -----END PGP SIGNATURE-----

    
    

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/



  • Next message: Jens Axboe: "Re: [PATCH] 2.6 ide-cd DMA ripping"

    Relevant Pages

    • Re: reiser4 plugins
      ... > 'kool' that its going to get into the kernel without rigorous peer ... I did expect the peer review to be a little more efficient, ... Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [PATCH] Use of getblk differs between locations
      ... > 1) Switch to read-only and use the cached data to fulfil requests and ... I recently looked into 2) a bit and the dm multipath code is almost ... Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • [off-topic] Patrick K. a new list subscriber
      ... university study (informatics of course). ... my prefered coding language is C and Java with the vi. ... Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: Possible GPL Violation of Linux in Amstrads E3 Videophone
      ... |>At least in New York and California the owner of intellectual ... enough kernel developers to relicense under such terms is the day hell ... Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • wakeup_pmode_return jmp failing?
      ... 352-5299 voice ... and may not represent the views of Sun Microsystems, ... Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)