Commit eec87189 authored by Oleg Dzhimiev's avatar Oleg Dzhimiev

unregister gpio_10389 attr when missing that board

parent 1bd3a40f
......@@ -1270,6 +1270,10 @@ static int elphel393_pwr_probe(struct platform_device *pdev)
if (base[2]==NULL){
device_remove_file(&pdev->dev, &dev_attr_gpio_10389);
for (i=0;i<ARRAY_SIZE(pwr_gpio);i++){
if (base[i>>3]!=NULL) if (pwr_gpio[i].label){
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment