Received: from [2001:470:1f01:ffff::eb] (helo=gate.crashing.org) by bombadil.infradead.org with esmtps (Exim 4.68 #1 (Red Hat Linux)) id 1JeWuV-0004l2-I2 for linux-mtd@lists.infradead.org; Wed, 26 Mar 2008 14:47:28 +0000 In-Reply-To: <200803261344.03438.laurentp@cse-semaphore.com> References: <200803261344.03438.laurentp@cse-semaphore.com> Mime-Version: 1.0 (Apple Message framework v623) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <346860fa1e8a75a4a89e260011690659@kernel.crashing.org> Content-Transfer-Encoding: 7bit From: Segher Boessenkool Subject: Re: [PATCH 1/2] [MTD] Add support for RAM & ROM mappings in the physmap_of MTD driver. Date: Wed, 26 Mar 2008 15:45:07 +0100 To: Laurent Pinchart Cc: ben@simtec.co.uk, linuxppc-dev@ozlabs.org, linux-mtd@lists.infradead.org, David Gibson List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , > { > + .compatible = "physmap-ram", > + .data = (void *)"map_ram", > + }, > + { > + .compatible = "physmap-rom", > + .data = (void *)"map_rom", > + }, Why the cast? It's redundant afaics. Segher