driver core: add helper for deferred probe reason setting
authorAhmad Fatoum <a.fatoum@pengutronix.de>
Tue, 23 Mar 2021 15:37:13 +0000 (16:37 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 5 Apr 2021 11:17:01 +0000 (13:17 +0200)
commit72a91f192da032b68519fafaecce03fd002d669a
treec06090f5a8f0f2f6488f6ca8770bcb0cb64a7bb0
parentd46f3e3ed5276e756caf40f760d4902d15c12dcb
driver core: add helper for deferred probe reason setting

We now have three places within the same file doing the same operation
of freeing this pointer and setting it anew. A helper makes this
arguably easier to read, so add one.

Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Reviewed-by: Andrzej Hajda <a.hajda@samsung.com>
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Link: https://lore.kernel.org/r/20210323153714.25120-2-a.fatoum@pengutronix.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/dd.c