diff options
author | Tom Rini <trini@konsulko.com> | 2018-09-18 20:42:37 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2018-09-18 20:42:37 -0400 |
commit | 4e710ebb4463c8e031eb269c012fbadb2479608b (patch) | |
tree | f334518436bc0262b483308026fbba413a45493e /drivers/sysreset/sysreset-uclass.c | |
parent | b57f1895b669e3fbdca486e7c40dfea00f22bb93 (diff) | |
parent | 75629a25087cd9897305375421abe2248bc40e72 (diff) |
Merge git://git.denx.de/u-boot-dm
- MPC83xx device tree additions (CPU and RAM)
- Fix sandbox build error
- Sync bitrev with Linux
- Various ofnode/DT improvements
Diffstat (limited to 'drivers/sysreset/sysreset-uclass.c')
-rw-r--r-- | drivers/sysreset/sysreset-uclass.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/sysreset/sysreset-uclass.c b/drivers/sysreset/sysreset-uclass.c index b918365e73..06ef0ed96c 100644 --- a/drivers/sysreset/sysreset-uclass.c +++ b/drivers/sysreset/sysreset-uclass.c @@ -24,6 +24,16 @@ int sysreset_request(struct udevice *dev, enum sysreset_t type) return ops->request(dev, type); } +int sysreset_get_status(struct udevice *dev, char *buf, int size) +{ + struct sysreset_ops *ops = sysreset_get_ops(dev); + + if (!ops->get_status) + return -ENOSYS; + + return ops->get_status(dev, buf, size); +} + int sysreset_walk(enum sysreset_t type) { struct udevice *dev; |