mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-28 15:41:40 +00:00
gpio: stm32-gpio: migrate trace to dev and log macro
Change debug to dev_dbg macro and define LOG_CATEGORY. Remove dev->name as it is already displayed by dev macro. Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com> Reviewed-by: Patrice Chotard <patrice.chotard@st.com>
This commit is contained in:
parent
28b3e7be15
commit
6dd89d9d5a
1 changed files with 3 additions and 1 deletions
|
@ -4,6 +4,8 @@
|
|||
* Author(s): Vikas Manocha, <vikas.manocha@st.com> for STMicroelectronics.
|
||||
*/
|
||||
|
||||
#define LOG_CATEGORY UCLASS_GPIO
|
||||
|
||||
#include <common.h>
|
||||
#include <clk.h>
|
||||
#include <dm.h>
|
||||
|
@ -331,7 +333,7 @@ static int gpio_stm32_probe(struct udevice *dev)
|
|||
dev_err(dev, "failed to enable clock\n");
|
||||
return ret;
|
||||
}
|
||||
debug("clock enabled for device %s\n", dev->name);
|
||||
dev_dbg(dev, "clock enabled\n");
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue