From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754084Ab2BDSZI (ORCPT ); Sat, 4 Feb 2012 13:25:08 -0500 Received: from mail1-relais-roc.national.inria.fr ([192.134.164.82]:64844 "EHLO mail1-relais-roc.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753209Ab2BDSZH (ORCPT ); Sat, 4 Feb 2012 13:25:07 -0500 X-IronPort-AV: E=Sophos;i="4.73,357,1325458800"; d="scan'208";a="142859996" Date: Sat, 4 Feb 2012 19:25:05 +0100 (CET) From: Julia Lawall X-X-Sender: jll@hadrien To: Wolfram Sang cc: Julia Lawall , Mark Brown , "alsa-devel@alsa-project.org" , Takashi Iwai , "kernel-janitors@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Dong Aisheng-B29396 , Liam Girdwood Subject: devm_request_and_ioremap In-Reply-To: <20120126135135.GD2611@pengutronix.de> Message-ID: References: <1326362117-29371-1-git-send-email-Julia.Lawall@lip6.fr> <7FE21149F4667147B645348EC605788508FBDB@039-SN2MPN1-013.039d.mgd.msft.net> <20120124202203.GD1135@opensource.wolfsonmicro.com> <20120126110506.GB2611@pengutronix.de> <20120126112242.GA9401@opensource.wolfsonmicro.com> <20120126135135.GD2611@pengutronix.de> User-Agent: Alpine 2.02 (DEB 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org How important is the name argument to request_mem_region? devm_request_and_ioremap uses: name = res->name ?: dev_name(dev); In trying to introduce uses of devm_request_and_ioremap I thus look for res->name and dev_name(dev) as well as the name in the driver structure in the platform_driver structure. But sometimes the name is pdev->name, ie the name field of the argument to the probe function. And sometimes it is a string that is slightly different than what is in the driver structure. thanks, julia