Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261862AbUCDPVn (ORCPT ); Thu, 4 Mar 2004 10:21:43 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261933AbUCDPVm (ORCPT ); Thu, 4 Mar 2004 10:21:42 -0500 Received: from mxrelay.osnanet.de ([212.95.97.103]:54205 "EHLO mxrelay.osnanet.de") by vger.kernel.org with ESMTP id S261862AbUCDPVc (ORCPT ); Thu, 4 Mar 2004 10:21:32 -0500 Message-ID: <4047490F.8050504@lilymarleen.de> Date: Thu, 04 Mar 2004 16:19:43 +0100 From: large User-Agent: Mozilla Thunderbird 0.5 (X11/20040217) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Linux Kernel Mailing List Cc: gerhard@gjaeger.de, Domen Puncer Subject: Patch: Plustek scanner driver (pt_drv) port to 2.6, correction for 2.6.3 X-Enigmail-Version: 0.83.2.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: multipart/mixed; boundary="------------040700090104080408000301" Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 7745 Lines: 142 This is a multi-part message in MIME format. --------------040700090104080408000301 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit -----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----- --------------040700090104080408000301 Content-Type: application/gzip; name="plustek-0.45-2.6.3.diff.gz" Content-Transfer-Encoding: base64 Content-Disposition: inline; filename="plustek-0.45-2.6.3.diff.gz" H4sICFZGR0AAA3BsdXN0ZWstMC40NS0yLjYuMy5kaWZmAMVce3faSLL/G3+KWic7A24EErbz wNdz4gCJvfHrgD3ZOZu9jCwJ0A1IXEnE9tnZ/exbVd16IAQG4z2LHevR1dXVVdXVVf2zY7uD AWjB7BLuTOu749maNXZMrz4dz8LI+d63A/eHE9QvzO/OwB07MdWy9h1N09bjVGrouqEZDU1v gHHQNIym8b6mxx8QuqHrO0KIp0YkPvua/k4zdDD05v675uHbOT7YvvPhA2hGtXG4D8KoGu/g w4cd7RUkkxr4AUQjB9QQEFqm5zkByKGQFL9f9iN5go3jew6PbbuBY0V+4DohN55eXXT67bMu NI+htqP1ui1+osfX5bixUg8Da0c7uyxuHO1oVx//Utjk3/3fjta+Ku5n+8j040nrS+eyvdBY Q2kWxZ+Fjg2R74+l9BfY7xgm33FWoE13tFaLnocW8r056eJtZKJeu51PeGs9BM4g4dnyJxPH i+ozz5J3zH7gj8f+vesNYcwj+qiv0LwbO3XHowuKcjcbDpGAeKD5wByHPtw5EDoR3D0CMTM9 m3tPzcCcOJETNGGCLoCkY2h3Pt5+Pn6UQvADSvaYSEXdfY8uU3SYAPxp5PqenOvV9Q3SagN/ 4kbagFhrU9/1kD9o7f71Tbv7a/9X4/h1+ddOt3d2dWlU4Buuk6RJT5v0Strl4+3ZeRub+FpJ JSFtzY2PWlQiUJNGs9Fcz3Ye5O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McHQifpoXqra+i5F0jIqekZnv/QAe+4UDfAP+fsj5CETfB9gUX1xdnnVLbtT7Re3H2DI RT2LNWjQzvSp78kr7OGu4EYx3hMQhiH/ZPbw4B35p7qy/Gt+2p1fP/X6vetO6+zkvN867VZB JzeYI+J8rz/zAmfooqaDMkxMujLhK/UrHuh3rPXeaBbZ/r3HLkwE2HCNTvYpvE0YtHkDjinE iq7wT/yJ/9Q837OZ+JrOsxQ40Szwylrn423vN+5HPcgKJdwS+rRd3PY6/dbV7eXNEa8vKP8J l0BflgB9NGv55vSs15fHtBQES4opaJ2Tzydnl1IjJVoxg7E5xNzhGNRecXXduUxspXr1r74c SZHfGFLkN8bbOHbIybbGfpioQPXO8P/pGP41NwA7Fc+n3cnNR01jOpufBimCOrXOr3qdbufm tntZ1qV6JAJAkWSD9S5/m2Plelck6613RbwY0fffbRrRM6zi9Y7RfP+geXhQ/Efm+0b1AK2C l0NpFPQYdpr6HhAS32udnHdqrdp2Hwwi3+DSJyCI0XDMQGnbxsXLf4QvXnqwjfZo+oWclcZk gvVMyaR5Q+5v+F8FzDHKmvGwqRvFZjQw4JEd6XqYBARaRSeha3WdYa2LKZ37QOfdx3B4oOtH 83a+uT6ptWBLza9r5xcbTOz8G2iBIY4QQgAA --------------040700090104080408000301-- - 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/