Skip to content

Commit 9b32694

Browse files
committed
Merge tag 'firewire-update' of git://git.kernel.org/pub/scm/linux/kernel/git/ieee1394/linux1394
Pull FireWire updates from Stefan Richter: - another y2038 fix - janitorial code movement * tag 'firewire-update' of git://git.kernel.org/pub/scm/linux/kernel/git/ieee1394/linux1394: firewire: core: code cleanup after vm_map_pages_zero introduction firewire: ohci: stop using get_seconds() for BUS_TIME
2 parents ef2cc88 + 7807759 commit 9b32694

File tree

4 files changed

+3
-11
lines changed

4 files changed

+3
-11
lines changed

drivers/firewire/core-cdev.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1686,7 +1686,8 @@ static int fw_device_op_mmap(struct file *file, struct vm_area_struct *vma)
16861686
if (ret < 0)
16871687
goto fail;
16881688

1689-
ret = fw_iso_buffer_map_vma(&client->buffer, vma);
1689+
ret = vm_map_pages_zero(vma, client->buffer.pages,
1690+
client->buffer.page_count);
16901691
if (ret < 0)
16911692
goto fail;
16921693

drivers/firewire/core-iso.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -91,13 +91,6 @@ int fw_iso_buffer_init(struct fw_iso_buffer *buffer, struct fw_card *card,
9191
}
9292
EXPORT_SYMBOL(fw_iso_buffer_init);
9393

94-
int fw_iso_buffer_map_vma(struct fw_iso_buffer *buffer,
95-
struct vm_area_struct *vma)
96-
{
97-
return vm_map_pages_zero(vma, buffer->pages,
98-
buffer->page_count);
99-
}
100-
10194
void fw_iso_buffer_destroy(struct fw_iso_buffer *buffer,
10295
struct fw_card *card)
10396
{

drivers/firewire/core.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,6 @@ void fw_node_event(struct fw_card *card, struct fw_node *node, int event);
158158
int fw_iso_buffer_alloc(struct fw_iso_buffer *buffer, int page_count);
159159
int fw_iso_buffer_map_dma(struct fw_iso_buffer *buffer, struct fw_card *card,
160160
enum dma_data_direction direction);
161-
int fw_iso_buffer_map_vma(struct fw_iso_buffer *buffer,
162-
struct vm_area_struct *vma);
163161

164162

165163
/* -topology */

drivers/firewire/ohci.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1752,7 +1752,7 @@ static u32 update_bus_time(struct fw_ohci *ohci)
17521752

17531753
if (unlikely(!ohci->bus_time_running)) {
17541754
reg_write(ohci, OHCI1394_IntMaskSet, OHCI1394_cycle64Seconds);
1755-
ohci->bus_time = (lower_32_bits(get_seconds()) & ~0x7f) |
1755+
ohci->bus_time = (lower_32_bits(ktime_get_seconds()) & ~0x7f) |
17561756
(cycle_time_seconds & 0x40);
17571757
ohci->bus_time_running = true;
17581758
}

0 commit comments

Comments
 (0)