All Dt files follow the upstream bindings now. No need to
support fallback path anymore.
Bug
1275792
Change-Id: I3bbb073ebc2ba46038862e89867685feebfad518
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/590403
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Hiroshi Doyu <hdoyu@nvidia.com>
if (!of_match_node(matches, ret->np))
continue;
- if (ret->args_count == 1) {
- swgids |= BIT(ret->args[0]);
- } else {
- /* XXX: Remove once DT has upstream iommus= */
- memcpy(&swgids, ret->args, sizeof(u64));
+ if (ret->args_count != 1) {
+ dev_err(dev, "iommus contains %d cells, expected 1\n",
+ ret->args_count);
break;
}
+
+ swgids |= BIT(ret->args[0]);
}
swgids = swgids ? swgids : SWGIDS_ERROR_CODE;