From: Alan Stern Date: Tue, 24 Jan 2012 19:35:13 +0000 (-0500) Subject: USB/PCI/PCMCIA: Clean up new_id and remove_id sysfs attribute routines X-Git-Tag: v3.4-rc1~187^2~40 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ed283e9f0a2cc0541870828c76c6c6997c51a318;p=pandora-kernel.git USB/PCI/PCMCIA: Clean up new_id and remove_id sysfs attribute routines This patch (as1514) cleans up some places where new_id and remove_id sysfs attributes are created and deleted. Handling both attributes in a single routine rather than a pair of routines makes the code smaller. It also prevents certain kinds of errors, like one we currently have in the USB subsystem: The removeid attribute is often created even when newid isn't (because the driver's no_dynamid_id flag is set). In the case of the PCMCIA subsystem, the newid attribute is created but never explicitly deleted. The patch adds a deletion routine. Signed-off-by: Alan Stern Acked-by: Jesse Barnes Acked-by: Dominik Brodowski Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed