[Armadeus-commitlog] SF.net SVN: armadeus: [687] trunk/buildroot/target/device/armadeus/linux/ ker
Brought to you by:
sszy
|
From: <th...@us...> - 2007-11-17 09:21:16
|
Revision: 687
http://armadeus.svn.sourceforge.net/armadeus/?rev=687&view=rev
Author: thom25
Date: 2007-11-17 01:21:20 -0800 (Sat, 17 Nov 2007)
Log Message:
-----------
fix compilation warnings
Modified Paths:
--------------
trunk/buildroot/target/device/armadeus/linux/kernel-patches/2.6.23.1/062-linux-2.6.23.1-max1027.diff
Modified: trunk/buildroot/target/device/armadeus/linux/kernel-patches/2.6.23.1/062-linux-2.6.23.1-max1027.diff
===================================================================
--- trunk/buildroot/target/device/armadeus/linux/kernel-patches/2.6.23.1/062-linux-2.6.23.1-max1027.diff 2007-11-16 19:38:04 UTC (rev 686)
+++ trunk/buildroot/target/device/armadeus/linux/kernel-patches/2.6.23.1/062-linux-2.6.23.1-max1027.diff 2007-11-17 09:21:20 UTC (rev 687)
@@ -31,7 +31,7 @@
diff -purN ma/buildroot/build_arm_nofpu/linux-2.6.18.1/drivers/hwmon/max1027.c linux-2.6.18.1/drivers/hwmon/max1027.c
--- ma/buildroot/build_arm_nofpu/linux-2.6.18.1/drivers/hwmon/max1027.c 1970-01-01 01:00:00.000000000 +0100
+++ linux-2.6.18.1/drivers/hwmon/max1027.c 2007-01-17 20:12:54.748893800 +0100
-@@ -0,0 +1,318 @@
+@@ -0,0 +1,339 @@
+/*
+ * max1027.c
+ *
@@ -272,18 +272,39 @@
+ goto out_dev_create_file_failed;
+ }
+
-+ device_create_file(&spi->dev, &dev_attr_config);
-+ device_create_file(&spi->dev, &dev_attr_conv);
-+ device_create_file(&spi->dev, &dev_attr_temp1_input);
-+ device_create_file(&spi->dev, &dev_attr_in0_input);
-+ device_create_file(&spi->dev, &dev_attr_in1_input);
-+ device_create_file(&spi->dev, &dev_attr_in2_input);
-+ device_create_file(&spi->dev, &dev_attr_in3_input);
-+ device_create_file(&spi->dev, &dev_attr_in4_input);
-+ device_create_file(&spi->dev, &dev_attr_in5_input);
-+ device_create_file(&spi->dev, &dev_attr_in6_input);
-+ device_create_file(&spi->dev, &dev_attr_in7_input);
++ if (device_create_file(&spi->dev, &dev_attr_config))
++ printk(KERN_WARNING "Unable to create sysfs attribute for max1027 config\n");
+
++ if (device_create_file(&spi->dev, &dev_attr_conv))
++ printk(KERN_WARNING "Unable to create sysfs attribute for max1027 conv\n");
++
++ if (device_create_file(&spi->dev, &dev_attr_temp1_input))
++ printk(KERN_WARNING "Unable to create sysfs attribute for max1027 temp1\n");
++
++ if (device_create_file(&spi->dev, &dev_attr_in0_input))
++ printk(KERN_WARNING "Unable to create sysfs attribute for max1027 in0\n");
++
++ if (device_create_file(&spi->dev, &dev_attr_in1_input))
++ printk(KERN_WARNING "Unable to create sysfs attribute for max1027 in1\n");
++
++ if (device_create_file(&spi->dev, &dev_attr_in2_input))
++ printk(KERN_WARNING "Unable to create sysfs attribute for max1027 in2\n");
++
++ if (device_create_file(&spi->dev, &dev_attr_in3_input))
++ printk(KERN_WARNING "Unable to create sysfs attribute for max1027 in3\n");
++
++ if (device_create_file(&spi->dev, &dev_attr_in4_input))
++ printk(KERN_WARNING "Unable to create sysfs attribute for max1027 in4\n");
++
++ if (device_create_file(&spi->dev, &dev_attr_in5_input))
++ printk(KERN_WARNING "Unable to create sysfs attribute for max1027 in5\n");
++
++ if (device_create_file(&spi->dev, &dev_attr_in6_input))
++ printk(KERN_WARNING "Unable to create sysfs attribute for max1027 in6\n");
++
++ if (device_create_file(&spi->dev, &dev_attr_in7_input))
++ printk(KERN_WARNING "Unable to create sysfs attribute for max1027 in7\n");
++
+ // setup spi device
+ spi->bits_per_word = 8;
+ spi_setup(spi);
@@ -327,7 +348,7 @@
+
+static struct spi_driver max1027_driver = {
+ .driver = {
-+ .name = "max1027",
++ .name = DRVNAME,
+ .owner = THIS_MODULE,
+ },
+ .probe = max1027_probe,
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|