mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
WorkStruct: make allyesconfig
Fix up for make allyesconfig. Signed-Off-By: David Howells <[email protected]>
This commit is contained in:
parent
65f27f3844
commit
c4028958b6
282 changed files with 1771 additions and 1450 deletions
|
|
@ -35,7 +35,7 @@ MODULE_LICENSE("GPL");
|
|||
|
||||
#define AK4114_ADDR 0x00 /* fixed address */
|
||||
|
||||
static void ak4114_stats(void *);
|
||||
static void ak4114_stats(struct work_struct *work);
|
||||
|
||||
static void reg_write(struct ak4114 *ak4114, unsigned char reg, unsigned char val)
|
||||
{
|
||||
|
|
@ -158,7 +158,7 @@ void snd_ak4114_reinit(struct ak4114 *chip)
|
|||
reg_write(chip, AK4114_REG_PWRDN, old | AK4114_RST | AK4114_PWN);
|
||||
/* bring up statistics / event queing */
|
||||
chip->init = 0;
|
||||
INIT_WORK(&chip->work, ak4114_stats, chip);
|
||||
INIT_DELAYED_WORK(&chip->work, ak4114_stats);
|
||||
queue_delayed_work(chip->workqueue, &chip->work, HZ / 10);
|
||||
}
|
||||
|
||||
|
|
@ -561,9 +561,9 @@ int snd_ak4114_check_rate_and_errors(struct ak4114 *ak4114, unsigned int flags)
|
|||
return res;
|
||||
}
|
||||
|
||||
static void ak4114_stats(void *data)
|
||||
static void ak4114_stats(struct work_struct *work)
|
||||
{
|
||||
struct ak4114 *chip = (struct ak4114 *)data;
|
||||
struct ak4114 *chip = container_of(work, struct ak4114, work.work);
|
||||
|
||||
if (chip->init)
|
||||
return;
|
||||
|
|
|
|||
Loading…
Reference in a new issue