mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-11-29 06:31:28 +01:00
misc: rcc: migrate trace to dev macro
Change debug and pr_err to dev macro and define LOG_CATEGORY. Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com> Reviewed-by: Patrice Chotard <patrice.chotard@st.com>
This commit is contained in:
parent
ca9a9da657
commit
8e80ba5af0
@ -4,6 +4,8 @@
|
|||||||
* Author(s): Patrice Chotard, <patrice.chotard@foss.st.com> for STMicroelectronics.
|
* Author(s): Patrice Chotard, <patrice.chotard@foss.st.com> for STMicroelectronics.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#define LOG_CATEGORY UCLASS_NOP
|
||||||
|
|
||||||
#include <common.h>
|
#include <common.h>
|
||||||
#include <dm.h>
|
#include <dm.h>
|
||||||
#include <log.h>
|
#include <log.h>
|
||||||
@ -45,10 +47,10 @@ static int stm32_rcc_bind(struct udevice *dev)
|
|||||||
(struct stm32_rcc_clk *)dev_get_driver_data(dev);
|
(struct stm32_rcc_clk *)dev_get_driver_data(dev);
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
debug("%s(dev=%p)\n", __func__, dev);
|
dev_dbg(dev, "RCC bind\n");
|
||||||
drv = lists_driver_lookup_name(rcc_clk->drv_name);
|
drv = lists_driver_lookup_name(rcc_clk->drv_name);
|
||||||
if (!drv) {
|
if (!drv) {
|
||||||
debug("Cannot find driver '%s'\n", rcc_clk->drv_name);
|
dev_err(dev, "Cannot find driver '%s'\n", rcc_clk->drv_name);
|
||||||
return -ENOENT;
|
return -ENOENT;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user