From: Ian Abbott Date: Wed, 22 Oct 2008 09:44:27 +0000 (+0000) Subject: Fixed a compiler warning. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=5dac47abe776276d35dee1cf99761d1c778cfe74;p=comedi.git Fixed a compiler warning. --- diff --git a/comedi/drivers.c b/comedi/drivers.c index c348766c..40195b02 100644 --- a/comedi/drivers.c +++ b/comedi/drivers.c @@ -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);