mmc: core: prepend 0x to OCR entry in sysfs
authorBastian Stender <bst@pengutronix.de>
Tue, 28 Nov 2017 08:24:07 +0000 (09:24 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 5 Dec 2017 10:26:33 +0000 (11:26 +0100)
commit1ef1173c4864c06b6104f386c2694aa740cf02ee
treecea76555a71c0f46bcc0516b71ec5de063d97623
parente6aa6389263d0db52ea674ed45eb591d21585eca
mmc: core: prepend 0x to OCR entry in sysfs

commit c892b0d81705c566f575e489efc3c50762db1bde upstream.

The sysfs entry "ocr" was missing the 0x prefix to identify it as hex
formatted.

Fixes: 5fb06af7a33b ("mmc: core: Extend sysfs with OCR register")
Signed-off-by: Bastian Stender <bst@pengutronix.de>
[Ulf: Amended change to also cover SD-cards]
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mmc/core/mmc.c
drivers/mmc/core/sd.c