]> git.baikalelectronics.ru Git - kernel.git/commit
spi/tle620x: add missing device_remove_file()
authorAxel Lin <axel.lin@gmail.com>
Wed, 11 May 2011 12:39:05 +0000 (20:39 +0800)
committerGrant Likely <grant.likely@secretlab.ca>
Fri, 27 May 2011 03:30:25 +0000 (21:30 -0600)
commitd3cf776fd91060d544ba852fae5a67d313474710
tree783fd060fd7fde5e26f655e183cf99405aab51a1
parentb85f1b4aeb085fec95232f415097fbc4f64d47b7
spi/tle620x: add missing device_remove_file()

This patch includes below fixes:
1. Add missing device_remove_file for dev_attr_status_show in tle62x0_remove.
2. Fix tle62x0_probe error handling:
   Currently, if the error happens when ptr > 0, gpio_attrs[0] is not
   properly remove.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
drivers/spi/tle62x0.c