Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756099Ab1BQRk0 (ORCPT ); Thu, 17 Feb 2011 12:40:26 -0500 Received: from moutng.kundenserver.de ([212.227.17.10]:56296 "EHLO moutng.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751642Ab1BQRkZ (ORCPT ); Thu, 17 Feb 2011 12:40:25 -0500 From: Arnd Bergmann To: "Guan Xuetao" Subject: Re: [PATCH 08/12] unicore32 machine related files: core files Date: Thu, 17 Feb 2011 18:40:16 +0100 User-Agent: KMail/1.12.2 (Linux/2.6.37; KDE/4.3.2; x86_64; ; ) Cc: linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, "'Greg KH'" References: <015101cbcdae$3b4fcc00$b1ef6400$@mprc.pku.edu.cn> In-Reply-To: <015101cbcdae$3b4fcc00$b1ef6400$@mprc.pku.edu.cn> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201102171840.16430.arnd@arndb.de> X-Provags-ID: V02:K0:GOagaDSbfYR3oQYn0pnjxWh6+wp6nslXflpQBmMynt8 Db4O3L+UwHKRLurheS1qyk9Yh1tdxf583AonP90yEoVDKZYAWg /JXnXFndhRC31ghBzga9T6cNHxDsGi7qmkIpldsV3F6GtuwHyp BwqYWHCDhMkPMEosueSKONNPx1NZiXdbxLVj7fWYkRkAxQvVMg RyEG/l1hEuCOZLOqHnvFw== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2380 Lines: 74 On Wednesday 16 February 2011, Guan Xuetao wrote: > Message-Id: <15f7e89c92883a77c96f5f3288c9a4afbd68f8e3.1297842537.git.gxt@mprc.pku.edu.cn> > In-Reply-To: > References: > From: GuanXuetao > Date: Sat, 15 Jan 2011 18:24:16 +0800 These headers should not be here. When using git-send-email, this will be handled automatically, but if you send the patch from a regular email client application, you should remove them manually. > diff --git a/arch/unicore32/Kconfig.puv3 b/arch/unicore32/Kconfig.puv3 > new file mode 100644 > index 0000000..2ef10db > --- /dev/null > +++ b/arch/unicore32/Kconfig.puv3 > @@ -0,0 +1,125 @@ > +# > +# PKUnity v3 Kconfig > +# > + > +if ARCH_PUV3 > + > +menu "PKUnity v3 SoC Features" > + > +config PUV3_I2C > + bool "PKUnity v3 I2C bus support" > +# default y > + select I2C > + select I2C_CHARDEV > + select I2C_ALGOBIT > + > +config PUV3_UMAL > + tristate "PKUnity v3 UMAL Gigabit Network Adapter support" > + select MII > + select PHYLIB > ... Generally, everything in this file should be moved to other files. The rule is that the Kconfig entry belongs into the same directory as the Makefile referencing it. E.g. the two above should be in drivers/i2c/busses/Kconfig and drivers/net/Kconfig, and in the same patch as the actual device driver. > + > +static struct platform_device nb0916_device_gpio_button = { > + .name = "gpio-keys", > + .id = -1, > + .dev = { > + .platform_data = &nb0916_gpio_button_data, > + }, > +}; > + > +static struct platform_device *mach_nb0916_devices[] __initdata = { > + &puv3_device_i2c, > + &physmap_flash, > + &nb0916_device_backlight, > + &nb0916_device_gpio_button, > +}; Static platform devices are no longer recommended. You can change these to use platform_device_register_simple() or a variant of it. If you plan to convert the entire architecture to use a flattened device tree as we discussed in an earlier review, you don't need to bother with this now, because the entire platform device registration you have here can then be removed. Arnd -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/