aboutsummaryrefslogtreecommitdiff
path: root/drivers/clk/clk-fixed-factor.c
diff options
context:
space:
mode:
authorPatrick Delaunay <patrick.delaunay@foss.st.com>2021-11-19 15:12:07 +0100
committerSean Anderson <seanga2@gmail.com>2021-12-15 12:16:16 -0500
commit560e1e005093b1d62c53391d68960237294e7f89 (patch)
tree5b495a689f69510df054cbe668106fb2660ed79a /drivers/clk/clk-fixed-factor.c
parent572c446e98e224555be1ae2add1b49ff1a60ed7a (diff)
downloadu-boot-560e1e005093b1d62c53391d68960237294e7f89.zip
u-boot-560e1e005093b1d62c53391d68960237294e7f89.tar.gz
u-boot-560e1e005093b1d62c53391d68960237294e7f89.tar.bz2
clk: define LOG_CATEGORY for generic and ccf clocks
Define LOG_CATEGORY to allow filtering with log command for generic clock and CCF clocks. This patch also change existing printf, debug and pr_ macro to log_ or dev_ macro. Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com> Reviewed-by: Sean Anderson <seanga2@gmail.com>
Diffstat (limited to 'drivers/clk/clk-fixed-factor.c')
-rw-r--r--drivers/clk/clk-fixed-factor.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/clk/clk-fixed-factor.c b/drivers/clk/clk-fixed-factor.c
index 9fcf30f..2a44678 100644
--- a/drivers/clk/clk-fixed-factor.c
+++ b/drivers/clk/clk-fixed-factor.c
@@ -5,10 +5,14 @@
*
* Copyright (C) 2011 Sascha Hauer, Pengutronix <s.hauer@pengutronix.de>
*/
+
+#define LOG_CATEGORY UCLASS_CLK
+
#include <common.h>
#include <clk.h>
#include <clk-uclass.h>
#include <div64.h>
+#include <log.h>
#include <malloc.h>
#include <dm/device.h>
#include <dm/devres.h>