]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
USB: keep track of whether interface sysfs files exist
authorAlan Stern <stern@rowland.harvard.edu>
Tue, 6 Nov 2007 16:43:42 +0000 (11:43 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 28 Nov 2007 21:58:35 +0000 (13:58 -0800)
commit7e61559f6199bb387037abfc7d10a893973561fc
treedd3e8f8cca77077bc4567a047cfe9ee74d100525
parent5fdcd0396be443e36a4e2128f51818acca570ee7
USB: keep track of whether interface sysfs files exist

This patch (as1009) solves the problem of multiple registrations for
USB sysfs files in a more satisfying way than the existing code.  It
simply adds a flag to keep track of whether or not the files have been
created; that way the files can be created or removed as needed.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
drivers/usb/core/message.c
drivers/usb/core/sysfs.c
include/linux/usb.h