mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-13 14:24:11 +08:00
usb: cdc-wdm: Fix check for WWAN
CONFIG_WWAN_CORE was with CONFIG_WWAN in commit89212e160b
("net: wwan: Fix WWAN config symbols"), but did not update all users of it. Change it back to use CONFIG_WWAN instead. Fixes:89212e160b
("net: wwan: Fix WWAN config symbols") Cc: <stable@vger.kernel.org> Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com> Acked-by: Oliver Neukum <oneukum@suse.com> Link: https://lore.kernel.org/r/20210929194547.46954-2-rikard.falkeborn@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
8253a34bfa
commit
04d2b75537
@ -824,7 +824,7 @@ static struct usb_class_driver wdm_class = {
|
||||
};
|
||||
|
||||
/* --- WWAN framework integration --- */
|
||||
#ifdef CONFIG_WWAN_CORE
|
||||
#ifdef CONFIG_WWAN
|
||||
static int wdm_wwan_port_start(struct wwan_port *port)
|
||||
{
|
||||
struct wdm_device *desc = wwan_port_get_drvdata(port);
|
||||
@ -963,11 +963,11 @@ static void wdm_wwan_rx(struct wdm_device *desc, int length)
|
||||
/* inbuf has been copied, it is safe to check for outstanding data */
|
||||
schedule_work(&desc->service_outs_intr);
|
||||
}
|
||||
#else /* CONFIG_WWAN_CORE */
|
||||
#else /* CONFIG_WWAN */
|
||||
static void wdm_wwan_init(struct wdm_device *desc) {}
|
||||
static void wdm_wwan_deinit(struct wdm_device *desc) {}
|
||||
static void wdm_wwan_rx(struct wdm_device *desc, int length) {}
|
||||
#endif /* CONFIG_WWAN_CORE */
|
||||
#endif /* CONFIG_WWAN */
|
||||
|
||||
/* --- error handling --- */
|
||||
static void wdm_rxwork(struct work_struct *work)
|
||||
|
Loading…
Reference in New Issue
Block a user