devres: fix devres_get()
commitebc0ae5a7159086a992f7904dc9ad849a13eecfc
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Wed, 15 Jul 2015 01:29:00 +0000 (15 10:29 +0900)
committerBen Hutchings <ben@decadent.org.uk>
Tue, 13 Oct 2015 02:46:05 +0000 (13 03:46 +0100)
treea3eece1b72f6c87969fb6d6831353a136b0610ca
parentb3170aab0b1a13c7c63061cee5dc3a5d49a65225
devres: fix devres_get()

commit 64526370d11ce8868ca495723d595b61e8697fbf upstream.

Currently, devres_get() passes devres_free() the pointer to devres,
but devres_free() should be given with the pointer to resource data.

Fixes: 9ac7849e35f7 ("devres: device resource management")
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/base/devres.c