From: Ricardo Ribalda Delgado Date: Fri, 31 Jul 2015 11:36:21 +0000 (+0200) Subject: leds/led-class: Add missing put_device() X-Git-Tag: omap-for-v4.3/fixes-merge-window~32^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e5b5a61fcb3743f1dacf9e20d28f48423cecf0c1;p=pandora-kernel.git leds/led-class: Add missing put_device() Devices found by class_find_device must be freed with put_device(). Otherwise the reference count will not work properly. Fixes: a96aa64cb572 ("leds/led-class: Handle LEDs with the same name") Reported-by: Alan Tull Signed-off-by: Ricardo Ribalda Delgado Signed-off-by: Jacek Anaszewski --- Reading git-diff-tree failed