ar71xx: use spinlock in ar71xx_device_{start,stop}
[openwrt.git] / target / linux / ar71xx / files / arch / mips / ar71xx / dev-m25p80.c
1 /*
2 * Copyright (C) 2009 Gabor Juhos <juhosg@openwrt.org>
3 *
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms of the GNU General Public License version 2 as published
6 * by the Free Software Foundation.
7 */
8
9 #include <linux/init.h>
10 #include <linux/spi/spi.h>
11 #include <linux/spi/flash.h>
12
13 #include "devices.h"
14 #include "dev-m25p80.h"
15
16 static struct spi_board_info ar71xx_spi_info[] = {
17 {
18 .bus_num = 0,
19 .chip_select = 0,
20 .max_speed_hz = 25000000,
21 .modalias = "m25p80",
22 }
23 };
24
25 void __init ar71xx_add_device_m25p80(struct flash_platform_data *pdata)
26 {
27 ar71xx_spi_info[0].platform_data = pdata;
28 ar71xx_add_device_spi(NULL, ar71xx_spi_info,
29 ARRAY_SIZE(ar71xx_spi_info));
30 }
This page took 0.04303 seconds and 5 git commands to generate.