Skip to content

Commit fefbec3

Browse files
krzkalexandrebelloni
authored andcommitted
rtc: s5m: Remove reference to parent's device pdata
The S5M RTC driver does not use parent's device (sec-core PMIC driver) platform data so there is no need to check for it. Signed-off-by: Krzysztof Kozlowski <[email protected]> Signed-off-by: Alexandre Belloni <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 204756f commit fefbec3

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

drivers/rtc/rtc-s5m.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -713,16 +713,10 @@ static int s5m8767_rtc_init_reg(struct s5m_rtc_info *info)
713713
static int s5m_rtc_probe(struct platform_device *pdev)
714714
{
715715
struct sec_pmic_dev *s5m87xx = dev_get_drvdata(pdev->dev.parent);
716-
struct sec_platform_data *pdata = s5m87xx->pdata;
717716
struct s5m_rtc_info *info;
718717
const struct regmap_config *regmap_cfg;
719718
int ret, alarm_irq;
720719

721-
if (!pdata) {
722-
dev_err(pdev->dev.parent, "Platform data not supplied\n");
723-
return -ENODEV;
724-
}
725-
726720
info = devm_kzalloc(&pdev->dev, sizeof(*info), GFP_KERNEL);
727721
if (!info)
728722
return -ENOMEM;

0 commit comments

Comments
 (0)