rtc: pcf85363: remove unused struct pcf85363 member
pcf85363->dev is unused, remove it. Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
This commit is contained in:
parent
838d2d9165
commit
8f7b1d718a
|
@ -115,7 +115,6 @@
|
||||||
static struct i2c_driver pcf85363_driver;
|
static struct i2c_driver pcf85363_driver;
|
||||||
|
|
||||||
struct pcf85363 {
|
struct pcf85363 {
|
||||||
struct device *dev;
|
|
||||||
struct rtc_device *rtc;
|
struct rtc_device *rtc;
|
||||||
struct regmap *regmap;
|
struct regmap *regmap;
|
||||||
};
|
};
|
||||||
|
@ -400,10 +399,9 @@ static int pcf85363_probe(struct i2c_client *client,
|
||||||
return PTR_ERR(pcf85363->regmap);
|
return PTR_ERR(pcf85363->regmap);
|
||||||
}
|
}
|
||||||
|
|
||||||
pcf85363->dev = &client->dev;
|
|
||||||
i2c_set_clientdata(client, pcf85363);
|
i2c_set_clientdata(client, pcf85363);
|
||||||
|
|
||||||
pcf85363->rtc = devm_rtc_allocate_device(pcf85363->dev);
|
pcf85363->rtc = devm_rtc_allocate_device(&client->dev);
|
||||||
if (IS_ERR(pcf85363->rtc))
|
if (IS_ERR(pcf85363->rtc))
|
||||||
return PTR_ERR(pcf85363->rtc);
|
return PTR_ERR(pcf85363->rtc);
|
||||||
|
|
||||||
|
@ -413,7 +411,7 @@ static int pcf85363_probe(struct i2c_client *client,
|
||||||
regmap_write(pcf85363->regmap, CTRL_FLAGS, 0);
|
regmap_write(pcf85363->regmap, CTRL_FLAGS, 0);
|
||||||
regmap_update_bits(pcf85363->regmap, CTRL_PIN_IO,
|
regmap_update_bits(pcf85363->regmap, CTRL_PIN_IO,
|
||||||
PIN_IO_INTA_OUT, PIN_IO_INTAPM);
|
PIN_IO_INTA_OUT, PIN_IO_INTAPM);
|
||||||
ret = devm_request_threaded_irq(pcf85363->dev, client->irq,
|
ret = devm_request_threaded_irq(&client->dev, client->irq,
|
||||||
NULL, pcf85363_rtc_handle_irq,
|
NULL, pcf85363_rtc_handle_irq,
|
||||||
IRQF_TRIGGER_LOW | IRQF_ONESHOT,
|
IRQF_TRIGGER_LOW | IRQF_ONESHOT,
|
||||||
"pcf85363", client);
|
"pcf85363", client);
|
||||||
|
|
Loading…
Reference in New Issue