chip_major / chip_minor are accessed sequentially in probe only.
Therefore no lock is needed.
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
/* detect hardware features */
static int nvt_hw_detect(struct nvt_dev *nvt)
{
- unsigned long flags;
u8 chip_major, chip_minor;
char chip_id[12];
bool chip_unknown = false;
nvt_efm_disable(nvt);
- spin_lock_irqsave(&nvt->nvt_lock, flags);
nvt->chip_major = chip_major;
nvt->chip_minor = chip_minor;
- spin_unlock_irqrestore(&nvt->nvt_lock, flags);
return 0;
}