Commit e92bc059 authored by Florian Fainelli's avatar Florian Fainelli

Merge tag 'tags/bcm2835-drivers-fixes-2020-0-17' into drivers/fixes

Fixes Raspberry Pi firmware version output
Signed-off-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
parents b3a9e3b9 da785a87
......@@ -181,6 +181,7 @@ EXPORT_SYMBOL_GPL(rpi_firmware_property);
static void
rpi_firmware_print_firmware_revision(struct rpi_firmware *fw)
{
time64_t date_and_time;
u32 packet;
int ret = rpi_firmware_property(fw,
RPI_FIRMWARE_GET_FIRMWARE_REVISION,
......@@ -189,7 +190,9 @@ rpi_firmware_print_firmware_revision(struct rpi_firmware *fw)
if (ret)
return;
dev_info(fw->cl.dev, "Attached to firmware from %ptT\n", &packet);
/* This is not compatible with y2038 */
date_and_time = packet;
dev_info(fw->cl.dev, "Attached to firmware from %ptT\n", &date_and_time);
}
static void
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment