From: Christoph Hellwig Date: Fri, 7 Aug 2015 16:15:15 +0000 (+0200) Subject: crypto/omap-sham: remove an open coded access to ->page_link X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=89e2a8404e4415da1edbac6ca4f7332b4a74fae2;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git crypto/omap-sham: remove an open coded access to ->page_link Signed-off-by: Dan Williams [hch: split from a larger patch by Dan] Signed-off-by: Christoph Hellwig Acked-by: Herbert Xu Signed-off-by: Jens Axboe --- diff --git a/drivers/crypto/omap-sham.c b/drivers/crypto/omap-sham.c index b2024c95a3cf..48adb2a0903e 100644 --- a/drivers/crypto/omap-sham.c +++ b/drivers/crypto/omap-sham.c @@ -588,7 +588,7 @@ static int omap_sham_xmit_dma(struct omap_sham_dev *dd, dma_addr_t dma_addr, * the dmaengine may try to DMA the incorrect amount of data. */ sg_init_table(&ctx->sgl, 1); - ctx->sgl.page_link = ctx->sg->page_link; + sg_assign_page(&ctx->sgl, sg_page(ctx->sg)); ctx->sgl.offset = ctx->sg->offset; sg_dma_len(&ctx->sgl) = len32; sg_dma_address(&ctx->sgl) = sg_dma_address(ctx->sg);