From: Greg Kroah-Hartman Date: Thu, 11 Sep 2014 00:12:20 +0000 (-0700) Subject: greybus: fix endian issue in sysfs.c X-Git-Tag: v4.9-rc1~119^2~378^2~21^2~2123^2 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=a6294fe8493cf0c98480f42d3057da2f98cc4ec1;p=karo-tx-linux.git greybus: fix endian issue in sysfs.c --- diff --git a/drivers/staging/greybus/sysfs.c b/drivers/staging/greybus/sysfs.c index 2393a6a0b678..a24a9edb9d77 100644 --- a/drivers/staging/greybus/sysfs.c +++ b/drivers/staging/greybus/sysfs.c @@ -145,7 +145,7 @@ static ssize_t serial_number_show(struct device *dev, struct greybus_device *gdev = to_greybus_device(dev); return sprintf(buf, "%llX\n", - (unsigned long long)gdev->serial_number.serial_number); + (unsigned long long)le64_to_cpu(gdev->serial_number.serial_number)); } static DEVICE_ATTR_RO(serial_number);