powerpc: Fallout from sysdev API changes

A struct sysdev_attribute * parameter was added to the show routine by
commit 4a0b2b4dbe "sysdev: Pass the
attribute to the low level sysdev show/store function".

This eliminates a warning:

arch/powerpc/kernel/sysfs.c:538: warning: initialization from incompatible pointer type

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
This commit is contained in:
Stephen Rothwell 2008-07-23 10:44:58 +10:00 committed by Benjamin Herrenschmidt
parent 9115d13453
commit 00bf6e9061
1 changed files with 2 additions and 1 deletions

View File

@ -529,7 +529,8 @@ static void register_nodes(void)
#endif #endif
/* Only valid if CPU is present. */ /* Only valid if CPU is present. */
static ssize_t show_physical_id(struct sys_device *dev, char *buf) static ssize_t show_physical_id(struct sys_device *dev,
struct sysdev_attribute *attr, char *buf)
{ {
struct cpu *cpu = container_of(dev, struct cpu, sysdev); struct cpu *cpu = container_of(dev, struct cpu, sysdev);