remoteproc: remove the now-redundant kref
authorOhad Ben-Cohen <ohad@wizery.com>
Wed, 30 May 2012 19:02:24 +0000 (22:02 +0300)
committerOhad Ben-Cohen <ohad@wizery.com>
Thu, 5 Jul 2012 21:53:25 +0000 (00:53 +0300)
commit7183a2a799b81490354973117ecd810c23cdc668
treecfd720d9a745f8d010120ca434246336423aea32
parentb5ab5e24e960b9f780a4cc96815cfd4b0d412720
remoteproc: remove the now-redundant kref

Now that every rproc instance contains a device, we don't need a
kref anymore to maintain the refcount of the rproc instances:
that's what device are good with!

This patch removes the now-redundant kref, and switches to
{get, put}_device instead of kref_{get, put}.

We also don't need the kref's release function anymore, and instead,
we just utilize the class's release handler (which is now responsible
for all memory de-allocations).

Cc: Stephen Boyd <sboyd@codeaurora.org>
Cc: Fernando Guzman Lugo <fernando.lugo@ti.com>
Signed-off-by: Ohad Ben-Cohen <ohad@wizery.com>
drivers/remoteproc/remoteproc_core.c
drivers/remoteproc/remoteproc_virtio.c
include/linux/remoteproc.h
This page took 0.027925 seconds and 5 git commands to generate.