Loading drivers/mfd/adp5520.c +2 −6 Original line number Diff line number Diff line Loading @@ -223,7 +223,7 @@ static int adp5520_probe(struct i2c_client *client, return -ENODEV; } chip = kzalloc(sizeof(*chip), GFP_KERNEL); chip = devm_kzalloc(&client->dev, sizeof(*chip), GFP_KERNEL); if (!chip) return -ENOMEM; Loading @@ -244,7 +244,7 @@ static int adp5520_probe(struct i2c_client *client, if (ret) { dev_err(&client->dev, "failed to request irq %d\n", chip->irq); goto out_free_chip; return ret; } } Loading Loading @@ -302,9 +302,6 @@ static int adp5520_probe(struct i2c_client *client, if (chip->irq) free_irq(chip->irq, chip); out_free_chip: kfree(chip); return ret; } Loading @@ -317,7 +314,6 @@ static int adp5520_remove(struct i2c_client *client) adp5520_remove_subdevs(chip); adp5520_write(chip->dev, ADP5520_MODE_STATUS, 0); kfree(chip); return 0; } Loading Loading
drivers/mfd/adp5520.c +2 −6 Original line number Diff line number Diff line Loading @@ -223,7 +223,7 @@ static int adp5520_probe(struct i2c_client *client, return -ENODEV; } chip = kzalloc(sizeof(*chip), GFP_KERNEL); chip = devm_kzalloc(&client->dev, sizeof(*chip), GFP_KERNEL); if (!chip) return -ENOMEM; Loading @@ -244,7 +244,7 @@ static int adp5520_probe(struct i2c_client *client, if (ret) { dev_err(&client->dev, "failed to request irq %d\n", chip->irq); goto out_free_chip; return ret; } } Loading Loading @@ -302,9 +302,6 @@ static int adp5520_probe(struct i2c_client *client, if (chip->irq) free_irq(chip->irq, chip); out_free_chip: kfree(chip); return ret; } Loading @@ -317,7 +314,6 @@ static int adp5520_remove(struct i2c_client *client) adp5520_remove_subdevs(chip); adp5520_write(chip->dev, ADP5520_MODE_STATUS, 0); kfree(chip); return 0; } Loading