Mercurial > vordog
comparison vordog.c @ 12:6bfd60bcd7b8
disable timer when shuting down
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Wed, 09 Jul 2008 04:40:09 +0800 |
parents | 3968bbb5303d |
children | e4e6727f530f |
comparison
equal
deleted
inserted
replaced
11:3968bbb5303d | 12:6bfd60bcd7b8 |
---|---|
352 break; | 352 break; |
353 case MOD_UNLOAD: | 353 case MOD_UNLOAD: |
354 vordog_go_detach(); /* remove device from parent */ | 354 vordog_go_detach(); /* remove device from parent */ |
355 break; | 355 break; |
356 case MOD_SHUTDOWN: | 356 case MOD_SHUTDOWN: |
357 disable_timer(); /* prevent system reset when shuting down */ | |
357 break; | 358 break; |
358 default: | 359 default: |
359 r = EINVAL; | 360 r = EINVAL; |
360 break; | 361 break; |
361 } | 362 } |