diff mbox

[v3,34/37] RDS: net: Switch from dma_device to dev.parent

Message ID 20170120210437.26389-35-bart.vanassche@sandisk.com (mailing list archive)
State Accepted
Headers show

Commit Message

Bart Van Assche Jan. 20, 2017, 9:04 p.m. UTC
Prepare for removal of ib_device.dma_device.

Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Cc: Santosh Shilimkar <santosh.shilimkar@oracle.com>
---
 net/rds/ib.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Santosh Shilimkar Jan. 20, 2017, 11:24 p.m. UTC | #1
On 1/20/2017 1:04 PM, Bart Van Assche wrote:
> Prepare for removal of ib_device.dma_device.
>
> Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>

Acked-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

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 */