aboutsummaryrefslogtreecommitdiff
path: root/drivers/firewire/fw-device.c
diff options
context:
space:
mode:
authorStefan Richter <stefanr@s5r6.in-berlin.de>2007-03-20 19:42:15 +0100
committerStefan Richter <stefanr@s5r6.in-berlin.de>2007-03-20 23:27:19 +0100
commitd84702a5d7b500ead8db129ddea789c88764f357 (patch)
tree64a8fecec334a554517d0183b6b7c647e6448edc /drivers/firewire/fw-device.c
parent633c52dccd73d83eabbe1fb23e3822b695a2718b (diff)
firewire: fix compiler warnings on 64bit
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de> Signed-off-by: Kristian Høgsberg <krh@redhat.com>
Diffstat (limited to 'drivers/firewire/fw-device.c')
-rw-r--r--drivers/firewire/fw-device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/firewire/fw-device.c b/drivers/firewire/fw-device.c
index 415e9abb062..a834221b758 100644
--- a/drivers/firewire/fw-device.c
+++ b/drivers/firewire/fw-device.c
@@ -240,7 +240,7 @@ show_rom_index_attribute(struct device *dev,
struct fw_unit *unit = fw_unit(dev);
return snprintf(buf, PAGE_SIZE, "%d\n",
- unit->directory - device->config_rom);
+ (int)(unit->directory - device->config_rom));
}
static struct device_attribute rom_index_attribute = {