On Fri, Feb 10, 2017 at 12:19:30PM -0700, Logan Gunthorpe wrote:
I copied this code and per feedback from Greg Kroah-Hartman  the
cdev's kobject's parent should not be set to the related device.
This should have minor consequences but isn't doing what anyone
expects it to.
This patch then fixes device-dax so it doesn't make the same mistake.
Signed-off-by: Logan Gunthorpe <logang(a)deltatee.com>
Acked-by: Greg Kroah-Hartman <gregkh(a)linuxfoundation.org>