Skip to contentSkip to conversation

MIPS: txx9 7segled fix struct device has no member

PATCH Applied Yoichi Yuasa 2 participants 2 messages Jan 10, 2012 – Jan 16, 2012 MIPS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 MIPS: txx9 7segled fix struct device has no member

arch/mips/txx9/generic/7segled.c: In function 'tx_7segled_init_sysfs':
arch/mips/txx9/generic/7segled.c:105:6: error: 'struct device' has no member named 'dev' make[3]: *** [arch/mips/txx9/generic/7segled.o] Error 1

---
 arch/mips/txx9/generic/7segled.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/mips/txx9/generic/7segled.c +1 -1
index 8e93b21..4642f56 100644
@@ -102,7 +102,7 @@ static int __init tx_7segled_init_sysfs(void)
 			break;
 		}
 		dev->id = i;
-		dev->dev = &tx_7segled_subsys;
+		dev->bus = &tx_7segled_subsys;
 		error = device_register(dev);
 		if (!error) {
 			device_create_file(dev, &dev_attr_ascii);
Signature · 1 line
1.7.3.4