]> err.no Git - linux-2.6/commitdiff
ieee1394: fix calculation of sysfs attribute "address"
authorStefan Richter <stefanr@s5r6.in-berlin.de>
Sun, 27 May 2007 11:11:47 +0000 (13:11 +0200)
committerStefan Richter <stefanr@s5r6.in-berlin.de>
Thu, 31 May 2007 19:40:13 +0000 (21:40 +0200)
struct csr1212_keyval.offset is relative to 0xffff f000 0000 rather than
0xffff f000 0400.

Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
drivers/ieee1394/nodemgr.c

index 835937e385292d648ba3d2b131e906d66bbb5f09..c291602a12d7035869ae0e1da3235044fb836b70 100644 (file)
@@ -976,7 +976,7 @@ static struct unit_directory *nodemgr_process_unit_directory
 
        ud->ne = ne;
        ud->ignore_driver = ignore_drivers;
-       ud->address = ud_kv->offset + CSR1212_CONFIG_ROM_SPACE_BASE;
+       ud->address = ud_kv->offset + CSR1212_REGISTER_SPACE_BASE;
        ud->ud_kv = ud_kv;
        ud->id = (*id)++;