* Set the base address for the rtc, and ioremap its
* registers.
*/
- rtc->baseaddr = res->start;
rtc->regs = devm_ioremap(&pdev->dev, res->start, rtc->size);
if (!rtc->regs)
return -ENOMEM;
}
- rtc->alloc_io_resources = pdata->alloc_io_resources;
/* Get the register step size. */
if (pdata->regstep > 0)
/* See if the platform doesn't support UIE. */
if (pdata->uie_unsupported)
rtc_dev->uie_unsupported = 1;
- rtc->uie_unsupported = pdata->uie_unsupported;
rtc->dev = rtc_dev;
struct rtc_device *dev;
void __iomem *regs;
u32 regstep;
- resource_size_t baseaddr;
size_t size;
int irq_num;
bool bcd_mode;
bool no_irq;
- bool uie_unsupported;
- bool alloc_io_resources;
u8 (*read)(struct ds1685_priv *, int);
void (*write)(struct ds1685_priv *, int, u8);
void (*prepare_poweroff)(void);