File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,8 @@ static u32 dpll_pin_xa_id;
29
29
WARN_ON_ONCE(!xa_get_mark(&dpll_device_xa, (d)->id, DPLL_REGISTERED))
30
30
#define ASSERT_DPLL_NOT_REGISTERED (d ) \
31
31
WARN_ON_ONCE(xa_get_mark(&dpll_device_xa, (d)->id, DPLL_REGISTERED))
32
+ #define ASSERT_DPLL_PIN_REGISTERED (p ) \
33
+ WARN_ON_ONCE(!xa_get_mark(&dpll_pin_xa, (p)->id, DPLL_REGISTERED))
32
34
33
35
struct dpll_device_registration {
34
36
struct list_head list ;
@@ -631,6 +633,7 @@ static void
631
633
__dpll_pin_unregister (struct dpll_device * dpll , struct dpll_pin * pin ,
632
634
const struct dpll_pin_ops * ops , void * priv )
633
635
{
636
+ ASSERT_DPLL_PIN_REGISTERED (pin );
634
637
dpll_xa_ref_pin_del (& dpll -> pin_refs , pin , ops , priv );
635
638
dpll_xa_ref_dpll_del (& pin -> dpll_refs , dpll , ops , priv );
636
639
if (xa_empty (& pin -> dpll_refs ))
You can’t perform that action at this time.
0 commit comments