serial: mrst_max3110: some code cleanup
authorFeng Tang <feng.tang@intel.com>
Mon, 13 Sep 2010 07:39:48 +0000 (15:39 +0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 22 Oct 2010 17:20:03 +0000 (10:20 -0700)
commitee9b4500eb6433015f35762d390666fede48e574
treec27780057d181e06caf0f1db95cb11417bd1a195
parentb670bde0b2497966d76154cfb9706c38cf8348f9
serial: mrst_max3110: some code cleanup

The cleanup for mrst_max3110 includes:
* remove unneeded head files
* make the spi_transfer dma safe, so that driver is more portable
* add more check for error return value
* use mutex_trylock for read thread

Signed-off-by: Feng Tang <feng.tang@intel.com>
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/serial/mrst_max3110.c
drivers/serial/mrst_max3110.h