component: Drop 'dev' argument to component_match_realloc()
This argument isn't used. Drop it. Cc: Daniel Vetter <daniel.vetter@ffwll.ch> Cc: "Rafael J. Wysocki" <rafael@kernel.org> Cc: Rob Clark <robdclark@gmail.com> Cc: Russell King <rmk+kernel@arm.linux.org.uk> Cc: Saravana Kannan <saravanak@google.com> Signed-off-by: Stephen Boyd <swboyd@chromium.org> Link: https://lore.kernel.org/r/20210520002519.3538432-2-swboyd@chromium.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
7e7ba9b3d4
commit
82769cc671
@@ -307,8 +307,7 @@ static void devm_component_match_release(struct device *dev, void *res)
|
|||||||
component_match_release(dev, res);
|
component_match_release(dev, res);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int component_match_realloc(struct device *dev,
|
static int component_match_realloc(struct component_match *match, size_t num)
|
||||||
struct component_match *match, size_t num)
|
|
||||||
{
|
{
|
||||||
struct component_match_array *new;
|
struct component_match_array *new;
|
||||||
|
|
||||||
@@ -359,7 +358,7 @@ static void __component_match_add(struct device *master,
|
|||||||
size_t new_size = match->alloc + 16;
|
size_t new_size = match->alloc + 16;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
ret = component_match_realloc(master, match, new_size);
|
ret = component_match_realloc(match, new_size);
|
||||||
if (ret) {
|
if (ret) {
|
||||||
*matchptr = ERR_PTR(ret);
|
*matchptr = ERR_PTR(ret);
|
||||||
return;
|
return;
|
||||||
@@ -469,7 +468,7 @@ int component_master_add_with_match(struct device *dev,
|
|||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
/* Reallocate the match array for its true size */
|
/* Reallocate the match array for its true size */
|
||||||
ret = component_match_realloc(dev, match, match->num);
|
ret = component_match_realloc(match, match->num);
|
||||||
if (ret)
|
if (ret)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user