max3100.c (0a9d59a2461477bd9ed143c01af9df3f8f00fa81) | max3100.c (58a69cb47ec6991bf006a3e5d202e8571b0327a4) |
---|---|
1/* 2 * 3 * Copyright (C) 2008 Christian Pellegrin <chripell@evolware.org> 4 * 5 * This program is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation; either version 2 of the License, or 8 * (at your option) any later version. --- 587 unchanged lines hidden (view full) --- 596 if (s->suspending) 597 return 0; 598 599 s->force_end_work = 0; 600 s->parity = 0; 601 s->rts = 0; 602 603 sprintf(b, "max3100-%d", s->minor); | 1/* 2 * 3 * Copyright (C) 2008 Christian Pellegrin <chripell@evolware.org> 4 * 5 * This program is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation; either version 2 of the License, or 8 * (at your option) any later version. --- 587 unchanged lines hidden (view full) --- 596 if (s->suspending) 597 return 0; 598 599 s->force_end_work = 0; 600 s->parity = 0; 601 s->rts = 0; 602 603 sprintf(b, "max3100-%d", s->minor); |
604 s->workqueue = create_freezeable_workqueue(b); | 604 s->workqueue = create_freezable_workqueue(b); |
605 if (!s->workqueue) { 606 dev_warn(&s->spi->dev, "cannot create workqueue\n"); 607 return -EBUSY; 608 } 609 INIT_WORK(&s->work, max3100_work); 610 611 if (request_irq(s->irq, max3100_irq, 612 IRQF_TRIGGER_FALLING, "max3100", s) < 0) { --- 314 unchanged lines hidden --- | 605 if (!s->workqueue) { 606 dev_warn(&s->spi->dev, "cannot create workqueue\n"); 607 return -EBUSY; 608 } 609 INIT_WORK(&s->work, max3100_work); 610 611 if (request_irq(s->irq, max3100_irq, 612 IRQF_TRIGGER_FALLING, "max3100", s) < 0) { --- 314 unchanged lines hidden --- |