Skip to content

Commit

Permalink
USB: EHCI: create sysfs companion files directly in the controller de…
Browse files Browse the repository at this point in the history
…vice

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: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Greg Kroah-Hartman committed Jun 16, 2009
1 parent 1098334 commit ed14f03
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/usb/host/ehci-hub.c
Original file line number Diff line number Diff line change
Expand Up @@ -391,15 +391,15 @@ 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);
}

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);
}

Expand Down

0 comments on commit ed14f03

Please sign in to comment.