samples: lcd_hd44780: return if binding fails
Coverity-ID: 151980 Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
634f875e19
commit
51f9318a32
1 changed files with 1 additions and 0 deletions
|
@ -530,6 +530,7 @@ void main(void)
|
|||
gpio_dev = device_get_binding(GPIO_DRV_NAME);
|
||||
if (!gpio_dev) {
|
||||
printk("Cannot find %s!\n", GPIO_DRV_NAME);
|
||||
return;
|
||||
}
|
||||
|
||||
/* Setup GPIO output */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue