linux-mips
[Top] [All Lists]

[PATCH] MIPS: txx9 7segled fix struct device has no member

To: Greg Kroah-Hartman <gregkh@suse.de>
Subject: [PATCH] MIPS: txx9 7segled fix struct device has no member
From: Yoichi Yuasa <yuasa@linux-mips.org>
Date: Tue, 10 Jan 2012 21:11:56 +0900
Cc: Kay Sievers <kay.sievers@vrfy.org>, Ralf Baechle <ralf@linux-mips.org>, yuasa@linux-mips.org, linux-mips <linux-mips@linux-mips.org>
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:date:from:to:cc:subject:message-id:x-mailer:mime-version :content-type:content-transfer-encoding; bh=ok7Vv6d+zRqIDWyiguyX5JQ0C7RgNfC/O+dbkFS1IOU=; b=jsH+k3Oc+H3FArushv//VnTt67FGOH5fslLlUk6a2hpwyjmZ6oD81TrtWeEof+a91K Sl+zHVe+QyASN6ejXprArYV/JH9JWuhSEkIBGTS9HPTYyKyuomc+mXJHNIAgNMpaiUHx rx+zq3pycVI1tY52zcWHIbLzqd7AY5TNMXj7k=
Sender: linux-mips-bounce@linux-mips.org
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

Signed-off-by: Yoichi Yuasa <yuasa@linux-mips.org>
---
 arch/mips/txx9/generic/7segled.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/mips/txx9/generic/7segled.c b/arch/mips/txx9/generic/7segled.c
index 8e93b21..4642f56 100644
--- a/arch/mips/txx9/generic/7segled.c
+++ b/arch/mips/txx9/generic/7segled.c
@@ -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);
-- 
1.7.3.4


<Prev in Thread] Current Thread [Next in Thread>