From: David Brownell Date: Mon, 25 Feb 2008 03:08:26 +0000 (-0800) Subject: ARM: OMAP1: omap1/pm.c build fix X-Git-Tag: v2.6.25-rc6~29^2~4^2~5 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=02bad5f9bc9f1f42d4bb87bb8bf741d4cefe87d6;p=~emulex%2Finfiniband.git ARM: OMAP1: omap1/pm.c build fix Build fix: arch/arm/mach-omap1/pm.c: In function 'omap_pm_init': arch/arm/mach-omap1/pm.c:720: warning: passing argument 2 of 'sysfs_create_file' from incompatible pointer type Signed-off-by: David Brownell Signed-off-by: Tony Lindgren --- diff --git a/arch/arm/mach-omap1/pm.c b/arch/arm/mach-omap1/pm.c index 8eb5dcdaead..e6c64e10b7e 100644 --- a/arch/arm/mach-omap1/pm.c +++ b/arch/arm/mach-omap1/pm.c @@ -717,7 +717,7 @@ static int __init omap_pm_init(void) #endif #ifdef CONFIG_OMAP_32K_TIMER - error = sysfs_create_file(power_kobj, &sleep_while_idle_attr); + error = sysfs_create_file(power_kobj, &sleep_while_idle_attr.attr); if (error) printk(KERN_ERR "sysfs_create_file failed: %d\n", error); #endif