The 'kstrtouint' function that was introduced in the 2.6.39 kernel and causes compilation to fail on 2.6.38. For compatibility reasons, replace it with the largely-equivalent 'strict_strtoul' function.
Fixes https://sourceforge.net/p/linuxwacom/bugs/295/ Fixes https://github.com/linuxwacom/input-wacom/issues/8 Signed-off-by: Jason Gerecke <jason.gere...@wacom.com> --- 2.6.38/wacom_sys.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/2.6.38/wacom_sys.c b/2.6.38/wacom_sys.c index 3088a66..69aa7d5 100644 --- a/2.6.38/wacom_sys.c +++ b/2.6.38/wacom_sys.c @@ -871,10 +871,10 @@ static ssize_t wacom_led_select_store(struct device *dev, int set_id, const char *buf, size_t count) { struct wacom *wacom = dev_get_drvdata(dev); - unsigned int id; + unsigned long id; int err; - err = kstrtouint(buf, 10, &id); + err = strict_strtoul(buf, 10, &id); if (err) return err; @@ -911,10 +911,10 @@ DEVICE_LED_SELECT_ATTR(1); static ssize_t wacom_luminance_store(struct wacom *wacom, u8 *dest, const char *buf, size_t count) { - unsigned int value; + unsigned long value; int err; - err = kstrtouint(buf, 10, &value); + err = strict_strtoul(buf, 10, &value); if (err) return err; -- 2.6.2 ------------------------------------------------------------------------------ Go from Idea to Many App Stores Faster with Intel(R) XDK Give your users amazing mobile app experiences with Intel(R) XDK. Use one codebase in this all-in-one HTML5 development environment. Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs. http://pubads.g.doubleclick.net/gampad/clk?id=254741911&iu=/4140 _______________________________________________ Linuxwacom-devel mailing list Linuxwacom-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel