Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F171969299
D59677.id186734.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
985 B
Referenced Files
None
Subscribers
None
D59677.id186734.diff
View Options
diff --git a/sys/dev/mthca/mthca_catas.c b/sys/dev/mthca/mthca_catas.c
--- a/sys/dev/mthca/mthca_catas.c
+++ b/sys/dev/mthca/mthca_catas.c
@@ -132,9 +132,9 @@
spin_unlock_irqrestore(&catas_lock, flags);
}
-static void poll_catas(unsigned long dev_ptr)
+static void poll_catas(struct timer_list *t)
{
- struct mthca_dev *dev = (struct mthca_dev *) dev_ptr;
+ struct mthca_dev *dev = timer_container_of(dev, t, catas_err.timer);
int i;
for (i = 0; i < dev->catas_err.size; ++i)
@@ -151,7 +151,7 @@
{
phys_addr_t addr;
- init_timer(&dev->catas_err.timer);
+ timer_setup(&dev->catas_err.timer, poll_catas, 0);
dev->catas_err.map = NULL;
addr = pci_resource_start(dev->pdev, 0) +
@@ -166,8 +166,6 @@
return;
}
- dev->catas_err.timer.data = (unsigned long) dev;
- dev->catas_err.timer.function = poll_catas;
dev->catas_err.timer.expires = jiffies + MTHCA_CATAS_POLL_INTERVAL;
INIT_LIST_HEAD(&dev->catas_err.list);
add_timer(&dev->catas_err.timer);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Sep 16, 12:34 AM (10 h, 8 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
38988875
Default Alt Text
D59677.id186734.diff (985 B)
Attached To
Mode
D59677: mthca: apply upstream changes to convert to timer_setup() LinuxKPI
Attached
Detach File
Event Timeline
Log In to Comment