summaryrefslogtreecommitdiff
path: root/arch/mips/sibyte/common
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@suse.de>2008-05-21 12:52:33 -0700
committerGreg Kroah-Hartman <gregkh@suse.de>2008-07-21 21:54:43 -0700
commit43f98747d48195d92c4102c17d7175bf24df1801 (patch)
tree471daebd0e907366465daeeaa24a072c0e88d035 /arch/mips/sibyte/common
parent97cd790e3a9cf2855676a461ac5c448f5843017d (diff)
downloadlinux-next-43f98747d48195d92c4102c17d7175bf24df1801.tar.gz
device create: mips: convert device_create to device_create_drvdata
device_create() is race-prone, so use the race-free device_create_drvdata() instead as device_create() is going away. Cc: Ralf Baechle <ralf@linux-mips.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'arch/mips/sibyte/common')
-rw-r--r--arch/mips/sibyte/common/sb_tbprof.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/mips/sibyte/common/sb_tbprof.c b/arch/mips/sibyte/common/sb_tbprof.c
index 28b012ab8dcb..66e3e3fb311f 100644
--- a/arch/mips/sibyte/common/sb_tbprof.c
+++ b/arch/mips/sibyte/common/sb_tbprof.c
@@ -576,7 +576,8 @@ static int __init sbprof_tb_init(void)
tb_class = tbc;
- dev = device_create(tbc, NULL, MKDEV(SBPROF_TB_MAJOR, 0), "tb");
+ dev = device_create_drvdata(tbc, NULL, MKDEV(SBPROF_TB_MAJOR, 0),
+ NULL, "tb");
if (IS_ERR(dev)) {
err = PTR_ERR(dev);
goto out_class;