diff options
Diffstat (limited to 'drivers/firewire/fw-device.c')
-rw-r--r-- | drivers/firewire/fw-device.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/firewire/fw-device.c b/drivers/firewire/fw-device.c index 415e9abb062b..a834221b7588 100644 --- a/drivers/firewire/fw-device.c +++ b/drivers/firewire/fw-device.c | |||
@@ -240,7 +240,7 @@ show_rom_index_attribute(struct device *dev, | |||
240 | struct fw_unit *unit = fw_unit(dev); | 240 | struct fw_unit *unit = fw_unit(dev); |
241 | 241 | ||
242 | return snprintf(buf, PAGE_SIZE, "%d\n", | 242 | return snprintf(buf, PAGE_SIZE, "%d\n", |
243 | unit->directory - device->config_rom); | 243 | (int)(unit->directory - device->config_rom)); |
244 | } | 244 | } |
245 | 245 | ||
246 | static struct device_attribute rom_index_attribute = { | 246 | static struct device_attribute rom_index_attribute = { |