Fixed a compiler warning.
authorIan Abbott <abbotti@mev.co.uk>
Wed, 22 Oct 2008 09:44:27 +0000 (09:44 +0000)
committerIan Abbott <abbotti@mev.co.uk>
Wed, 22 Oct 2008 09:44:27 +0000 (09:44 +0000)
comedi/drivers.c

index c348766cc18efe785c2050371f83ab5df101c99b..40195b02f809ffd8633975edb4f7f4cba7f1bd61 100644 (file)
@@ -799,7 +799,7 @@ int comedi_auto_config(struct device *hardware_device, const char *board_name, c
 
        minor = comedi_alloc_board_minor(hardware_device);
        if(minor < 0) return minor;
-       dev_set_drvdata(hardware_device, (void*)minor);
+       dev_set_drvdata(hardware_device, (void*)(unsigned long)minor);
 
        dev_file_info = comedi_get_device_file_info(minor);