From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933945AbeAOPLy (ORCPT + 1 other); Mon, 15 Jan 2018 10:11:54 -0500 Received: from bombadil.infradead.org ([65.50.211.133]:34424 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754459AbeAOPLw (ORCPT ); Mon, 15 Jan 2018 10:11:52 -0500 Date: Mon, 15 Jan 2018 07:11:48 -0800 From: Christoph Hellwig To: Andy Shevchenko Cc: Christoph Hellwig , Bjorn Helgaas , Mauro Carvalho Chehab , Kong Lai , linux-pci@vger.kernel.org, Linux Media Mailing List , netdev , Linux Kernel Mailing List Subject: Re: [PATCH 3/4] tsi108_eth: use dma API properly Message-ID: <20180115151148.GA7317@infradead.org> References: <20180110180322.30186-1-hch@lst.de> <20180110180322.30186-4-hch@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.1 (2017-09-22) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: On Wed, Jan 10, 2018 at 10:09:20PM +0200, Andy Shevchenko wrote: > > + struct platform_device *pdev; > > Do you really need platform_defice reference? > > Perhaps > > struct device *hdev; // hardware device > > > data->hdev = &pdev->dev; > > Another idea > > dev->dev.parent = &pdev->dev; > > No new member needed. Maybe. But what I've done is the simplest change in a long obsolete driver that I don't understand at all. I'd rather keep it simple.