Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ed14f034 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman
Browse files

USB: EHCI: create sysfs companion files directly in the controller device



The controller device is where we want this sysfs file, especially as
the dev pointer is about to go away...

Cc: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 10983341
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -391,7 +391,7 @@ static inline void create_companion_file(struct ehci_hcd *ehci)

	/* with integrated TT there is no companion! */
	if (!ehci_is_TDI(ehci))
		i = device_create_file(ehci_to_hcd(ehci)->self.dev,
		i = device_create_file(ehci_to_hcd(ehci)->self.controller,
				       &dev_attr_companion);
}

@@ -399,7 +399,7 @@ static inline void remove_companion_file(struct ehci_hcd *ehci)
{
	/* with integrated TT there is no companion! */
	if (!ehci_is_TDI(ehci))
		device_remove_file(ehci_to_hcd(ehci)->self.dev,
		device_remove_file(ehci_to_hcd(ehci)->self.controller,
				   &dev_attr_companion);
}