On Mon, Feb 24, 2014 at 06:37:37PM +0800, Huang Shijie wrote: > This patch cloned most of the m25p80.c. In theory, it adds a new spi-nor layer. ... > diff --git a/drivers/mtd/spi-nor/spi-nor.c b/drivers/mtd/spi-nor/spi-nor.c > new file mode 100644 > index 0000000..a840e88 > --- /dev/null > +++ b/drivers/mtd/spi-nor/spi-nor.c > @@ -0,0 +1,1087 @@ > +/* > + * Cloned most of the code from the m25p80.c Please include a copyright notice here. This should carry both the original m25p80.c copyright notice, as well as your own additional copyright if you choose. For instance: * Based on m25p80.c, by Mike Lavender (mike@xxxxxxxxxxxxxxxxx), with * influence from lart.c (Abraham Van Der Merwe) and mtd_dataflash.c * * Copyright © 2005, Intec Automation Inc. * Copyright © 2014, Freescale Semiconductor, Inc. > + * > + * This code is free software; you can redistribute it and/or modify > + * it under the terms of the GNU General Public License version 2 as > + * published by the Free Software Foundation. > + */ > + > +#include <linux/err.h> > +#include <linux/errno.h> > +#include <linux/module.h> > +#include <linux/device.h> > +#include <linux/mutex.h> > +#include <linux/math64.h> ... Brian -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html