]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
more sysdev API change fallout - drivers/base/memory.c
authorStephen Rothwell <sfr@canb.auug.org.au>
Mon, 28 Jul 2008 01:05:04 +0000 (11:05 +1000)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 28 Jul 2008 15:31:58 +0000 (08:31 -0700)
Noticed because of this warning:

  drivers/base/memory.c:279: warning: initialization from incompatible pointer type

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/base/memory.c

index 3ad49a00029ff91c39f00bb430de302f7ab409b7..af0d175c025dcd168c5a6de866351fd0b1f83d5a 100644 (file)
@@ -103,7 +103,8 @@ static ssize_t show_mem_phys_index(struct sys_device *dev,
 /*
  * Show whether the section of memory is likely to be hot-removable
  */
-static ssize_t show_mem_removable(struct sys_device *dev, char *buf)
+static ssize_t show_mem_removable(struct sys_device *dev,
+                       struct sysdev_attribute *attr, char *buf)
 {
        unsigned long start_pfn;
        int ret;