| * This file is subject to the terms and conditions of the GNU General Public |
| * License. See the file "COPYING" in the main directory of this archive |
| * Copyright (C) 2006 MIPS Technologies, Inc. |
| * written by Ralf Baechle <ralf@linux-mips.org> |
| #include <linux/platform_device.h> |
| #include <linux/mtd/partitions.h> |
| #include <linux/mtd/physmap.h> |
| static struct mtd_partition malta_mtd_partitions[] = { |
| .mask_flags = MTD_WRITEABLE |
| .mask_flags = MTD_WRITEABLE |
| static struct physmap_flash_data malta_flash_data = { |
| .nr_parts = ARRAY_SIZE(malta_mtd_partitions), |
| .parts = malta_mtd_partitions |
| static struct resource malta_flash_resource = { |
| static struct platform_device malta_flash = { |
| .platform_data = &malta_flash_data, |
| .resource = &malta_flash_resource, |
| static int __init malta_mtd_init(void) |
| platform_device_register(&malta_flash); |
| module_init(malta_mtd_init) |