diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2014-08-02 00:07:03 +0200 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2014-08-02 00:07:03 +0200 |
commit | 475d5928b79bb78326a645863d46ff95c5e25e5a (patch) | |
tree | a260aed0d94bda824d7f2c5d74b2b1f8002634aa /arch/mips/kernel/rtlx-mt.c | |
parent | c6b7b9f290c0987194b966d5ea1383e10e1a01b1 (diff) | |
parent | 1062080a7d8dbe08cefce728341285e77930ef49 (diff) | |
download | op-kernel-dev-475d5928b79bb78326a645863d46ff95c5e25e5a.zip op-kernel-dev-475d5928b79bb78326a645863d46ff95c5e25e5a.tar.gz |
Merge branch '3.16-fixes' into mips-for-linux-next
Diffstat (limited to 'arch/mips/kernel/rtlx-mt.c')
-rw-r--r-- | arch/mips/kernel/rtlx-mt.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/mips/kernel/rtlx-mt.c b/arch/mips/kernel/rtlx-mt.c index 5a66b97..cb95470 100644 --- a/arch/mips/kernel/rtlx-mt.c +++ b/arch/mips/kernel/rtlx-mt.c @@ -103,6 +103,9 @@ int __init rtlx_module_init(void) dev = device_create(mt_class, NULL, MKDEV(major, i), NULL, "%s%d", RTLX_MODULE_NAME, i); if (IS_ERR(dev)) { + while (i--) + device_destroy(mt_class, MKDEV(major, i)); + err = PTR_ERR(dev); goto out_chrdev; } |