commit | 892e38c9dfb53b063bc8c5c10724f8914a3e118c | [log] [tgz] |
---|---|---|
author | Masahiro Yamada <yamada.m@jp.panasonic.com> | Sun Sep 28 22:52:25 2014 +0900 |
committer | Simon Glass <sjg@chromium.org> | Wed Oct 22 10:32:16 2014 -0600 |
tree | 56b7cc6ef2a04ddc38e508335cfe2d0ce4ee4ff9 | |
parent | 191fa3b37ebd444d743ae6655ab7e3831925a9d9 [diff] |
dm: do not check the existence of uclass operation The function uclass_add() checks uc_drv->ops as follows: if (uc_drv->ops) { dm_warn("No ops for uclass id %d\n", id); return -EINVAL; } It seems odd because it warns "No ops" when uc_drv->ops has non-NULL pointer. (Looks opposite.) Anyway, most of UCLASS_DRIVER entries have no .ops member. This check makes no sense. Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com> Acked-by: Simon Glass <sjg@chromium.org>