This reverts commit
da1c928ee89c224a8ab26e77514149f5f286cb3d.
Reverted commit introduces change which can cause cable state change
loss, and breaks extcon drivers when there are no one notifier
registered - state in sysfs does not change so debugging is impeded.
Change-Id: I7b3919494023aeff0ae95301976d15d738fee65b
Signed-off-by: Robert Baldyga <r.baldyga@samsung.com>
int env_offset = 0;
int length;
unsigned long flags;
- int ret;
spin_lock_irqsave(&edev->lock, flags);
edev->state &= ~mask;
edev->state |= state & mask;
- ret = raw_notifier_call_chain(&edev->nh, old_state, edev);
- if ((ret & ~NOTIFY_STOP_MASK) != NOTIFY_OK) {
- edev->state = old_state;
- spin_unlock_irqrestore(&edev->lock, flags);
- return -ENODEV;
- }
+ raw_notifier_call_chain(&edev->nh, old_state, edev);
/* This could be in interrupt handler */
prop_buf = (char *)get_zeroed_page(GFP_ATOMIC);