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

Commit 97ac01d8 authored by Oliver Neukum's avatar Oliver Neukum Committed by Greg Kroah-Hartman
Browse files

usb: wwan: fix compilation without CONFIG_PM_RUNTIME



The pm usage counter must be accessed with the proper wrappers
to allow compilation under all configurations.

Signed-off-by: default avatarOliver Neukum <oneukum@suse.de>
Reported-by: default avatarEric Dumazet <eric.dumazet@gmail.com>
Reported-by: default avatarTao Ma <boyu.mt@taobao.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent adaa3c63
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -698,8 +698,7 @@ static void play_delayed(struct usb_serial_port *port)
			/* we have to throw away the rest */
			do {
				unbusy_queued_urb(urb, portdata);
				//extremely dirty
				atomic_dec(&port->serial->interface->dev.power.usage_count);
				usb_autopm_put_interface_no_suspend(port->serial->interface);
			} while ((urb = usb_get_from_anchor(&portdata->delayed)));
			break;
		}