driver core: Move dev_err_probe() to where it belogs
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 21 Jul 2023 13:13:09 +0000 (16:13 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 5 Aug 2023 06:31:41 +0000 (08:31 +0200)
commit9e0cace7a6254070159ebd86497eadc29ea307ca
tree20965286842be9d747a3201e5f9c1cf6d056aa65
parentf5992717b5826debc4aa58d4da6233563b139320
driver core: Move dev_err_probe() to where it belogs

dev_err_probe() belongs to the printing API, hence
move the definition from device.h to dev_printk.h.

There is no change to the callers at all, since:
1) implementation is located in the same core.c;
2) dev_printk.h is guaranteed to be included by device.h.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Andi Shyti <andi.shyti@kernel.org>
Link: https://lore.kernel.org/r/20230721131309.16821-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/dev_printk.h
include/linux/device.h