Skip to content

Commit 8532bd5

Browse files
iwamatsualexandrebelloni
authored andcommitted
rtc: sun6i: Remove struct device from sun6i_rtc_dev
struct device in struct sun6i_rtc_dev is not used, remove it. Signed-off-by: Nobuhiro Iwamatsu <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexandre Belloni <[email protected]>
1 parent 4f8aade commit 8532bd5

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/rtc/rtc-sun6i.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,6 @@ struct sun6i_rtc_clk_data {
136136

137137
struct sun6i_rtc_dev {
138138
struct rtc_device *rtc;
139-
struct device *dev;
140139
const struct sun6i_rtc_clk_data *data;
141140
void __iomem *base;
142141
int irq;
@@ -669,7 +668,6 @@ static int sun6i_rtc_probe(struct platform_device *pdev)
669668
return -ENODEV;
670669

671670
platform_set_drvdata(pdev, chip);
672-
chip->dev = &pdev->dev;
673671

674672
chip->irq = platform_get_irq(pdev, 0);
675673
if (chip->irq < 0)

0 commit comments

Comments
 (0)