rapidio: use kobj_to_dev()
authorGeliang Tang <geliangtang@163.com>
Wed, 20 Jan 2016 23:00:39 +0000 (15:00 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 21 Jan 2016 01:09:18 +0000 (17:09 -0800)
commita253f1eee6c471d5418983ca9aa9c756e7db5db9
tree21919694570251eb02c6eb0589d794561384132f
parent978e30c9b46161c792ecdad0091fd017b21b8ca5
rapidio: use kobj_to_dev()

Use kobj_to_dev() instead of open-coding it.

Signed-off-by: Geliang Tang <geliangtang@163.com>
Acked-by: "Bounine, Alexandre" <Alexandre.Bounine@idt.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/rapidio/rio-sysfs.c