summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorMasahiro Yamada <[email protected]>2014-09-28 22:52:25 +0900
committerSimon Glass <[email protected]>2014-10-22 10:32:16 -0600
commit29a1bedbf33d788646b51391bb116e481b9f0b45 (patch)
tree56b7cc6ef2a04ddc38e508335cfe2d0ce4ee4ff9 /include/linux
parent81b4e751c2bb9d9c769c2b55273944f70f9abc95 (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 <[email protected]> Acked-by: Simon Glass <[email protected]>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions