diff options
Diffstat (limited to 'drivers/bluetooth/hci_bcm.c')
-rw-r--r-- | drivers/bluetooth/hci_bcm.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/bluetooth/hci_bcm.c b/drivers/bluetooth/hci_bcm.c index 0438a64b8185..6314dfb02969 100644 --- a/drivers/bluetooth/hci_bcm.c +++ b/drivers/bluetooth/hci_bcm.c | |||
@@ -922,12 +922,13 @@ static int bcm_get_resources(struct bcm_device *dev) | |||
922 | 922 | ||
923 | dev->clk = devm_clk_get(dev->dev, NULL); | 923 | dev->clk = devm_clk_get(dev->dev, NULL); |
924 | 924 | ||
925 | dev->device_wakeup = devm_gpiod_get(dev->dev, "device-wakeup", | 925 | dev->device_wakeup = devm_gpiod_get_optional(dev->dev, "device-wakeup", |
926 | GPIOD_OUT_LOW); | 926 | GPIOD_OUT_LOW); |
927 | if (IS_ERR(dev->device_wakeup)) | 927 | if (IS_ERR(dev->device_wakeup)) |
928 | return PTR_ERR(dev->device_wakeup); | 928 | return PTR_ERR(dev->device_wakeup); |
929 | 929 | ||
930 | dev->shutdown = devm_gpiod_get(dev->dev, "shutdown", GPIOD_OUT_LOW); | 930 | dev->shutdown = devm_gpiod_get_optional(dev->dev, "shutdown", |
931 | GPIOD_OUT_LOW); | ||
931 | if (IS_ERR(dev->shutdown)) | 932 | if (IS_ERR(dev->shutdown)) |
932 | return PTR_ERR(dev->shutdown); | 933 | return PTR_ERR(dev->shutdown); |
933 | 934 | ||