mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2024-12-29 17:22:07 +00:00
rtc: m48t35: remove SGI-IP27 kludge
With the IOC3 MFD driver it's no longer necessary to special case SGI-IP27. Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de> Link: https://lore.kernel.org/r/20200309123514.15543-1-tsbogend@alpha.franken.de Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
This commit is contained in:
parent
ec98a87509
commit
eac1c3fc55
@ -160,15 +160,10 @@ static int m48t35_probe(struct platform_device *pdev)
|
|||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
|
|
||||||
priv->size = resource_size(res);
|
priv->size = resource_size(res);
|
||||||
/*
|
|
||||||
* kludge: remove the #ifndef after ioc3 resource
|
|
||||||
* conflicts are resolved
|
|
||||||
*/
|
|
||||||
#ifndef CONFIG_SGI_IP27
|
|
||||||
if (!devm_request_mem_region(&pdev->dev, res->start, priv->size,
|
if (!devm_request_mem_region(&pdev->dev, res->start, priv->size,
|
||||||
pdev->name))
|
pdev->name))
|
||||||
return -EBUSY;
|
return -EBUSY;
|
||||||
#endif
|
|
||||||
priv->baseaddr = res->start;
|
priv->baseaddr = res->start;
|
||||||
priv->reg = devm_ioremap(&pdev->dev, priv->baseaddr, priv->size);
|
priv->reg = devm_ioremap(&pdev->dev, priv->baseaddr, priv->size);
|
||||||
if (!priv->reg)
|
if (!priv->reg)
|
||||||
|
Loading…
Reference in New Issue
Block a user