We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 204756f commit fefbec3Copy full SHA for fefbec3
drivers/rtc/rtc-s5m.c
@@ -713,16 +713,10 @@ static int s5m8767_rtc_init_reg(struct s5m_rtc_info *info)
713
static int s5m_rtc_probe(struct platform_device *pdev)
714
{
715
struct sec_pmic_dev *s5m87xx = dev_get_drvdata(pdev->dev.parent);
716
- struct sec_platform_data *pdata = s5m87xx->pdata;
717
struct s5m_rtc_info *info;
718
const struct regmap_config *regmap_cfg;
719
int ret, alarm_irq;
720
721
- if (!pdata) {
722
- dev_err(pdev->dev.parent, "Platform data not supplied\n");
723
- return -ENODEV;
724
- }
725
-
726
info = devm_kzalloc(&pdev->dev, sizeof(*info), GFP_KERNEL);
727
if (!info)
728
return -ENOMEM;
0 commit comments