aboutsummaryrefslogtreecommitdiff
path: root/drivers/net/mlx4/sense.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/mlx4/sense.c')
-rw-r--r--drivers/net/mlx4/sense.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/mlx4/sense.c b/drivers/net/mlx4/sense.c
index 6d5089ecb5a..f36ae691cab 100644
--- a/drivers/net/mlx4/sense.c
+++ b/drivers/net/mlx4/sense.c
@@ -103,7 +103,7 @@ void mlx4_do_sense_ports(struct mlx4_dev *dev,
static void mlx4_sense_port(struct work_struct *work)
{
- struct delayed_work *delay = container_of(work, struct delayed_work, work);
+ struct delayed_work *delay = to_delayed_work(work);
struct mlx4_sense *sense = container_of(delay, struct mlx4_sense,
sense_poll);
struct mlx4_dev *dev = sense->dev;