platform_drv: fix reference count in "Switch" class

Only decrement by 1 in the "unuse" function.
This commit is contained in:
Sebastian Sumpf 2022-09-14 13:30:29 +02:00 committed by Christian Helmuth
parent 4b9fb10fdb
commit 0370b0fa23

View File

@ -58,7 +58,7 @@ namespace Driver {
_count--; _count--;
if (--_count == 0) if (_count == 0)
(_dev.*_deactivate)(); (_dev.*_deactivate)();
} }
}; };