From mboxrd@z Thu Jan 1 00:00:00 1970 From: Linus Walleij Subject: Re: [PATCH] spi/pl022: make sure the chip_info dev pointer is set Date: Fri, 1 Oct 2010 12:37:57 +0200 Message-ID: <4CA5BA05.3000605@stericsson.com> References: <1285839648-7368-1-git-send-email-linus.walleij@stericsson.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: "spi-devel-general@lists.sourceforge.net" , "linux-arm-kernel@lists.infradead.org" To: Grant Likely Return-path: In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=m.gmane.org@lists.infradead.org List-Id: linux-spi.vger.kernel.org Grant Likely wrote: >> } else { >> + /* Users should not set this field */ >> + chip_info->dev = &spi->dev; >> dev_dbg(&spi->dev, >> "using user supplied controller_data settings\n"); >> } > > Nack. data passed to a driver via the controller_data must be > immutable as far as the device driver is concerned. I posted another patch removing it instead, that's obviously the right thing to do... Yours, Linus Walleij