From: Bart Van Assche Date: Fri, 20 Jan 2017 21:04:34 +0000 (-0800) Subject: RDS: net: Switch from dma_device to dev.parent X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=5f68dcaff5524007ebaeafb45e9e9477f4da2a73;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git RDS: net: Switch from dma_device to dev.parent Prepare for removal of ib_device.dma_device. Signed-off-by: Bart Van Assche Cc: Santosh Shilimkar Acked-by: Santosh Shilimkar Signed-off-by: Doug Ledford --- diff --git a/net/rds/ib.h b/net/rds/ib.h index d21ca88ab628..4a520826da23 100644 --- a/net/rds/ib.h +++ b/net/rds/ib.h @@ -223,7 +223,7 @@ struct rds_ib_device { struct work_struct free_work; }; -#define ibdev_to_node(ibdev) dev_to_node(ibdev->dma_device) +#define ibdev_to_node(ibdev) dev_to_node((ibdev)->dev.parent) #define rdsibdev_to_node(rdsibdev) ibdev_to_node(rdsibdev->dev) /* bits for i_ack_flags */