|
@@ -1005,7 +1005,7 @@ int saa7134_tvaudio_init2(struct saa7134_dev *dev)
|
|
int saa7134_tvaudio_fini(struct saa7134_dev *dev)
|
|
int saa7134_tvaudio_fini(struct saa7134_dev *dev)
|
|
{
|
|
{
|
|
/* shutdown tvaudio thread */
|
|
/* shutdown tvaudio thread */
|
|
- if (dev->thread.pid >= 0) {
|
|
|
|
|
|
+ if (dev->thread.pid > 0) {
|
|
dev->thread.shutdown = 1;
|
|
dev->thread.shutdown = 1;
|
|
wake_up_interruptible(&dev->thread.wq);
|
|
wake_up_interruptible(&dev->thread.wq);
|
|
wait_for_completion(&dev->thread.exit);
|
|
wait_for_completion(&dev->thread.exit);
|