]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
update mach-omap2/pm.c for struct subsystem removal
authorPaul Walmsley <paul@pwsan.com>
Tue, 8 May 2007 21:39:00 +0000 (15:39 -0600)
committerTony Lindgren <tony@atomide.com>
Tue, 8 May 2007 22:24:38 +0000 (15:24 -0700)
'struct subsystem' is no more, replaced with 'struct kset': commit
823bccfc4002296ba88c3ad0f049e1abd8108d30.  Fixes the following
warnings:

  CC      arch/arm/mach-omap2/pm.o
arch/arm/mach-omap2/pm.c:410: warning: 'struct subsystem' declared inside parameter list
arch/arm/mach-omap2/pm.c:410: warning: its scope is only this definition or declaration, which is probably not what you want
arch/arm/mach-omap2/pm.c:417: warning: 'struct subsystem' declared inside parameter list
arch/arm/mach-omap2/pm.c:434: warning: initialization from incompatible pointer type
arch/arm/mach-omap2/pm.c:435: warning: initialization from incompatible pointer type

Compile-tested only.

Signed-off-by: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/pm.c

index 0a88c6a148cd1db4b0975aac154fcc59a139a756..4a8e99be69876a1b321f33a357b2a6c01e71a5ba 100644 (file)
@@ -407,12 +407,12 @@ static inline void serial_console_fclk_mask(u32 *f1, u32 *f2) {}
 
 static unsigned short enable_dyn_sleep = 0; /* disabled till drivers are fixed */
 
-static ssize_t omap_pm_sleep_while_idle_show(struct subsystem * subsys, char *buf)
+static ssize_t omap_pm_sleep_while_idle_show(struct kset * subsys, char *buf)
 {
        return sprintf(buf, "%hu\n", enable_dyn_sleep);
 }
 
-static ssize_t omap_pm_sleep_while_idle_store(struct subsystem * subsys,
+static ssize_t omap_pm_sleep_while_idle_store(struct kset * subsys,
                                              const char * buf,
                                              size_t n)
 {