Commit 324a83be authored by Anas Nashif's avatar Anas Nashif Committed by Anas Nashif
Browse files

nble: Use string name for GPIO driver



Do not depend on specific implementation of the driver, use
well-known driver name used across multiple IPs.

Change-Id: I823fcfa01ce1484dd89f6ade8fbe7017f2084bc6
Signed-off-by: default avatarAnas Nashif <anas.nashif@intel.com>
parent 01aa9a1d
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -56,9 +56,9 @@ int nrf51_init(void)
{
	int ret;

	nrf51_gpio = device_get_binding(CONFIG_GPIO_DW_0_NAME);
	nrf51_gpio = device_get_binding("GPIO_0");
	if (!nrf51_gpio) {
		BT_ERR("Cannot find %s", CONFIG_GPIO_DW_0_NAME);
		BT_ERR("Cannot find GPIO_0");
		return -ENODEV;
	}