aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2012-10-01 21:46:13 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2012-10-01 21:46:13 -0400
commit8f446a7a069e0af0639385f67c78ee2279bca04c (patch)
tree580cf495616b36ca0af0826afa87c430cdc1e7cb /drivers/char
parent84be4ae2c038e2b03d650cbf2a7cfd9e8d6e9e51 (diff)
parent04ef037c926ddb31088c976538e29eada4fd1490 (diff)
Merge tag 'drivers' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc
Pull ARM soc driver specific changes from Olof Johansson: - A long-coming conversion of various platforms to a common LED infrastructure - AT91 is moved over to use the newer MCI driver for MMC - Pincontrol conversions for samsung platforms - DT bindings for gscaler on samsung - i2c driver fixes for tegra, acked by i2c maintainer Fix up conflicts as per Olof. * tag 'drivers' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc: (48 commits) drivers: bus: omap_l3: use resources instead of hardcoded irqs pinctrl: exynos: Fix wakeup IRQ domain registration check pinctrl: samsung: Uninline samsung_pinctrl_get_soc_data pinctrl: exynos: Correct the detection of wakeup-eint node pinctrl: exynos: Mark exynos_irq_demux_eint as inline pinctrl: exynos: Handle only unmasked wakeup interrupts pinctrl: exynos: Fix typos in gpio/wkup _irq_mask pinctrl: exynos: Set pin function to EINT in irq_set_type of GPIO EINTa drivers: bus: Move the OMAP interconnect driver to drivers/bus/ i2c: tegra: dynamically control fast clk i2c: tegra: I2_M_NOSTART functionality not supported in Tegra20 ARM: tegra: clock: remove unused clock entry for i2c ARM: tegra: clock: add connection name in i2c clock entry i2c: tegra: pass proper name for getting clock ARM: tegra: clock: add i2c fast clock entry in clock table ARM: EXYNOS: Adds G-Scaler device from Device Tree ARM: EXYNOS: Add clock support for G-Scaler ARM: EXYNOS: Enable pinctrl driver support for EXYNOS4 device tree enabled platform ARM: dts: Add pinctrl node entries for SAMSUNG EXYNOS4210 SoC ARM: EXYNOS: skip wakeup interrupt setup if pinctrl driver is used ...
Diffstat (limited to 'drivers/char')
-rw-r--r--drivers/char/nwflash.c34
1 files changed, 0 insertions, 34 deletions
diff --git a/drivers/char/nwflash.c b/drivers/char/nwflash.c
index d45c3345b4af..a0e2f7d70355 100644
--- a/drivers/char/nwflash.c
+++ b/drivers/char/nwflash.c
@@ -30,7 +30,6 @@
30 30
31#include <asm/hardware/dec21285.h> 31#include <asm/hardware/dec21285.h>
32#include <asm/io.h> 32#include <asm/io.h>
33#include <asm/leds.h>
34#include <asm/mach-types.h> 33#include <asm/mach-types.h>
35#include <asm/uaccess.h> 34#include <asm/uaccess.h>
36 35
@@ -179,9 +178,6 @@ static ssize_t flash_write(struct file *file, const char __user *buf,
179 178
180 written = 0; 179 written = 0;
181 180
182 leds_event(led_claim);
183 leds_event(led_green_on);
184
185 nBlock = (int) p >> 16; //block # of 64K bytes 181 nBlock = (int) p >> 16; //block # of 64K bytes
186 182
187 /* 183 /*
@@ -258,11 +254,6 @@ static ssize_t flash_write(struct file *file, const char __user *buf,
258 printk(KERN_DEBUG "flash_write: written 0x%X bytes OK.\n", written); 254 printk(KERN_DEBUG "flash_write: written 0x%X bytes OK.\n", written);
259 } 255 }
260 256
261 /*
262 * restore reg on exit
263 */
264 leds_event(led_release);
265
266 mutex_unlock(&nwflash_mutex); 257 mutex_unlock(&nwflash_mutex);
267 258
268 return written; 259 return written;
@@ -334,11 +325,6 @@ static int erase_block(int nBlock)
334 int temp, temp1; 325 int temp, temp1;
335 326
336 /* 327 /*
337 * orange LED == erase
338 */
339 leds_event(led_amber_on);
340
341 /*
342 * reset footbridge to the correct offset 0 (...0..3) 328 * reset footbridge to the correct offset 0 (...0..3)
343 */ 329 */
344 *CSR_ROMWRITEREG = 0; 330 *CSR_ROMWRITEREG = 0;
@@ -446,12 +432,6 @@ static int write_block(unsigned long p, const char __user *buf, int count)
446 unsigned long timeout; 432 unsigned long timeout;
447 unsigned long timeout1; 433 unsigned long timeout1;
448 434
449 /*
450 * red LED == write
451 */
452 leds_event(led_amber_off);
453 leds_event(led_red_on);
454
455 pWritePtr = (unsigned char *) ((unsigned int) (FLASH_BASE + p)); 435 pWritePtr = (unsigned char *) ((unsigned int) (FLASH_BASE + p));
456 436
457 /* 437 /*
@@ -558,17 +538,9 @@ static int write_block(unsigned long p, const char __user *buf, int count)
558 pWritePtr - FLASH_BASE); 538 pWritePtr - FLASH_BASE);
559 539
560 /* 540 /*
561 * no LED == waiting
562 */
563 leds_event(led_amber_off);
564 /*
565 * wait couple ms 541 * wait couple ms
566 */ 542 */
567 msleep(10); 543 msleep(10);
568 /*
569 * red LED == write
570 */
571 leds_event(led_red_on);
572 544
573 goto WriteRetry; 545 goto WriteRetry;
574 } else { 546 } else {
@@ -583,12 +555,6 @@ static int write_block(unsigned long p, const char __user *buf, int count)
583 } 555 }
584 } 556 }
585 557
586 /*
587 * green LED == read/verify
588 */
589 leds_event(led_amber_off);
590 leds_event(led_green_on);
591
592 msleep(10); 558 msleep(10);
593 559
594 pWritePtr = (unsigned char *) ((unsigned int) (FLASH_BASE + p)); 560 pWritePtr = (unsigned char *) ((unsigned int) (FLASH_BASE + p));