Message ID | 1593355503-24938-3-git-send-email-sagar.kadam@sifive.com |
---|---|
State | Accepted |
Commit | 969251a5a4d3515abc233621bc8ca6f1c93d6dd4 |
Headers | show |
Series | update clock handler and proper cpu features | expand |
diff --git a/drivers/cpu/cpu-uclass.c b/drivers/cpu/cpu-uclass.c index 7418c26..cbb4419 100644 --- a/drivers/cpu/cpu-uclass.c +++ b/drivers/cpu/cpu-uclass.c @@ -86,6 +86,9 @@ int cpu_get_info(struct udevice *dev, struct cpu_info *info) if (!ops->get_info) return -ENOSYS; + /* Init cpu_info to 0 */ + memset(info, 0, sizeof(struct cpu_info)); + return ops->get_info(dev, info); }