Skip to content

Commit 04d2b75

Browse files
rikardfalkeborngregkh
authored andcommitted
usb: cdc-wdm: Fix check for WWAN
CONFIG_WWAN_CORE was with CONFIG_WWAN in commit 89212e1 ("net: wwan: Fix WWAN config symbols"), but did not update all users of it. Change it back to use CONFIG_WWAN instead. Fixes: 89212e1 ("net: wwan: Fix WWAN config symbols") Cc: <[email protected]> Signed-off-by: Rikard Falkeborn <[email protected]> Acked-by: Oliver Neukum <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 8253a34 commit 04d2b75

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/usb/class/cdc-wdm.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -824,7 +824,7 @@ static struct usb_class_driver wdm_class = {
824824
};
825825

826826
/* --- WWAN framework integration --- */
827-
#ifdef CONFIG_WWAN_CORE
827+
#ifdef CONFIG_WWAN
828828
static int wdm_wwan_port_start(struct wwan_port *port)
829829
{
830830
struct wdm_device *desc = wwan_port_get_drvdata(port);
@@ -963,11 +963,11 @@ static void wdm_wwan_rx(struct wdm_device *desc, int length)
963963
/* inbuf has been copied, it is safe to check for outstanding data */
964964
schedule_work(&desc->service_outs_intr);
965965
}
966-
#else /* CONFIG_WWAN_CORE */
966+
#else /* CONFIG_WWAN */
967967
static void wdm_wwan_init(struct wdm_device *desc) {}
968968
static void wdm_wwan_deinit(struct wdm_device *desc) {}
969969
static void wdm_wwan_rx(struct wdm_device *desc, int length) {}
970-
#endif /* CONFIG_WWAN_CORE */
970+
#endif /* CONFIG_WWAN */
971971

972972
/* --- error handling --- */
973973
static void wdm_rxwork(struct work_struct *work)

0 commit comments

Comments
 (0)