Author: nick Date: 2012-03-14 08:50:24 +0000 (Wed, 14 Mar 2012) New Revision: 1850 Modified: balloon/branches/menuconfig2/package/kernel/patches/2.6.39.4/balloon3-samosa.patch Log: remove conditional on TT to avoid DEVICE_ATTR error Modified: balloon/branches/menuconfig2/package/kernel/patches/2.6.39.4/balloon3-samosa.patch =================================================================== --- balloon/branches/menuconfig2/package/kernel/patches/2.6.39.4/balloon3-samosa.patch 2012-03-13 17:32:21 UTC (rev 1849) +++ balloon/branches/menuconfig2/package/kernel/patches/2.6.39.4/balloon3-samosa.patch 2012-03-14 08:50:24 UTC (rev 1850) @@ -9,8 +9,8 @@ Index: linux-2.6.39.4/drivers/char/Makefile =================================================================== ---- linux-2.6.39.4.orig/drivers/char/Makefile 2012-01-19 16:16:30.000000000 +0000 -+++ linux-2.6.39.4/drivers/char/Makefile 2012-01-19 17:42:28.000000000 +0000 +--- linux-2.6.39.4.orig/drivers/char/Makefile 2011-08-03 20:43:28.000000000 +0100 ++++ linux-2.6.39.4/drivers/char/Makefile 2012-03-14 08:47:49.000000000 +0000 @@ -63,3 +63,5 @@ obj-$(CONFIG_JS_RTC) += js-rtc.o @@ -19,8 +19,8 @@ +obj-$(CONFIG_SAMOSA) += samosa.o Index: linux-2.6.39.4/drivers/char/Kconfig =================================================================== ---- linux-2.6.39.4.orig/drivers/char/Kconfig 2012-01-19 16:16:30.000000000 +0000 -+++ linux-2.6.39.4/drivers/char/Kconfig 2012-01-19 17:42:28.000000000 +0000 +--- linux-2.6.39.4.orig/drivers/char/Kconfig 2011-08-03 20:43:28.000000000 +0100 ++++ linux-2.6.39.4/drivers/char/Kconfig 2012-03-14 08:47:49.000000000 +0000 @@ -616,5 +616,29 @@ Enables userspace clients to read and write to some packet SMD ports via device interface for MSM chipset. @@ -54,7 +54,7 @@ Index: linux-2.6.39.4/drivers/char/samosa.c =================================================================== --- /dev/null 1970-01-01 00:00:00.000000000 +0000 -+++ linux-2.6.39.4/drivers/char/samosa.c 2012-01-19 17:40:41.000000000 +0000 ++++ linux-2.6.39.4/drivers/char/samosa.c 2012-03-14 08:47:43.000000000 +0000 @@ -0,0 +1,1171 @@ +/* + * drivers/char/samosa.c @@ -104,18 +104,18 @@ +#ifdef CONFIG_MACH_BALLOON3 +/* balloon3 version */ + -+#ifdef CONFIG_BALLOON3_TT ++//#ifdef CONFIG_BALLOON3_TT +static ssize_t show_cpld_version(struct device *d, + struct device_attribute *attr, char *buf) +{ + return sprintf(buf, "0x%x\n", samosa_read8(0xff)); +} -+#endif ++//#endif + +static DEVICE_ATTR(cpld_version, S_IRUGO, -+#ifdef CONFIG_BALLOON3_TT ++//#ifdef CONFIG_BALLOON3_TT + show_cpld_version, -+#endif ++//#endif + NULL); + +static struct attribute *samosa_sysfs_entries[] = { @@ -1230,7 +1230,7 @@ Index: linux-2.6.39.4/include/linux/samosa_device.h =================================================================== --- /dev/null 1970-01-01 00:00:00.000000000 +0000 -+++ linux-2.6.39.4/include/linux/samosa_device.h 2012-01-19 16:16:35.000000000 +0000 ++++ linux-2.6.39.4/include/linux/samosa_device.h 2012-03-10 23:12:16.000000000 +0000 @@ -0,0 +1,92 @@ +/* + * drivers/char/samosa.h