Commit 9e420d7f authored by Thomas Bogendoerfer's avatar Thomas Bogendoerfer Committed by Alexandre Belloni

rts: ds1685: remove not needed fields from private struct

A few of the fields in struct ds1685_priv aren't needed at all,
so we can remove it.
Signed-off-by: default avatarThomas Bogendoerfer <tbogendoerfer@suse.de>
Acked-by: default avatarJoshua Kinard <kumba@gentoo.org>
Link: https://lore.kernel.org/r/20191011150546.9186-1-tbogendoerfer@suse.deSigned-off-by: default avatarAlexandre Belloni <alexandre.belloni@bootlin.com>
parent d53bf24d
...@@ -1086,12 +1086,10 @@ ds1685_rtc_probe(struct platform_device *pdev) ...@@ -1086,12 +1086,10 @@ ds1685_rtc_probe(struct platform_device *pdev)
* Set the base address for the rtc, and ioremap its * Set the base address for the rtc, and ioremap its
* registers. * registers.
*/ */
rtc->baseaddr = res->start;
rtc->regs = devm_ioremap(&pdev->dev, res->start, rtc->size); rtc->regs = devm_ioremap(&pdev->dev, res->start, rtc->size);
if (!rtc->regs) if (!rtc->regs)
return -ENOMEM; return -ENOMEM;
} }
rtc->alloc_io_resources = pdata->alloc_io_resources;
/* Get the register step size. */ /* Get the register step size. */
if (pdata->regstep > 0) if (pdata->regstep > 0)
...@@ -1271,7 +1269,6 @@ ds1685_rtc_probe(struct platform_device *pdev) ...@@ -1271,7 +1269,6 @@ ds1685_rtc_probe(struct platform_device *pdev)
/* See if the platform doesn't support UIE. */ /* See if the platform doesn't support UIE. */
if (pdata->uie_unsupported) if (pdata->uie_unsupported)
rtc_dev->uie_unsupported = 1; rtc_dev->uie_unsupported = 1;
rtc->uie_unsupported = pdata->uie_unsupported;
rtc->dev = rtc_dev; rtc->dev = rtc_dev;
......
...@@ -43,13 +43,10 @@ struct ds1685_priv { ...@@ -43,13 +43,10 @@ struct ds1685_priv {
struct rtc_device *dev; struct rtc_device *dev;
void __iomem *regs; void __iomem *regs;
u32 regstep; u32 regstep;
resource_size_t baseaddr;
size_t size; size_t size;
int irq_num; int irq_num;
bool bcd_mode; bool bcd_mode;
bool no_irq; bool no_irq;
bool uie_unsupported;
bool alloc_io_resources;
u8 (*read)(struct ds1685_priv *, int); u8 (*read)(struct ds1685_priv *, int);
void (*write)(struct ds1685_priv *, int, u8); void (*write)(struct ds1685_priv *, int, u8);
void (*prepare_poweroff)(void); void (*prepare_poweroff)(void);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment