Use log subsystem for dm_warn()
Various minor bug fixes
This commit is contained in:
Tom Rini
2021-08-09 09:27:06 -04:00
8 changed files with 36 additions and 16 deletions

View File

@@ -159,7 +159,8 @@ void *uclass_get_priv(const struct uclass *uc);
*
* @key: ID to look up
* @ucp: Returns pointer to uclass (there is only one per ID)
* @return 0 if OK, -ve on error
* @return 0 if OK, -EDEADLK if driver model is not yet inited, other -ve on
* other error
*/
int uclass_get(enum uclass_id key, struct uclass **ucp);

View File

@@ -7,7 +7,7 @@
#define __DM_UTIL_H
#if CONFIG_IS_ENABLED(DM_WARN)
void dm_warn(const char *fmt, ...);
#define dm_warn(fmt...) log(LOGC_DM, LOGL_WARNING, ##fmt)
#else
static inline void dm_warn(const char *fmt, ...)
{