Skip to contentSkip to conversation

rtc-ds1305-remove-unnecessary-spi_set_drvdata.patch removed from -mm tree

merged [email protected] 1 participant 1 message Jan 24, 2014 Real time clock (RTC)

lore
Share & tools
lore
#0 lore raw

Subject: [merged] rtc-ds1305-remove-unnecessary-spi_set_drvdata.patch removed from -mm tree
To: [email protected],[email protected]
From: [email protected]
Date: Fri, 24 Jan 2014 11:02:28 -0800

The patch titled
Subject: drivers/rtc/rtc-ds1305.c: remove unnecessary spi_set_drvdata()
has been removed from the -mm tree. Its filename was
rtc-ds1305-remove-unnecessary-spi_set_drvdata.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Jingoo Han <[email protected]>
Subject: drivers/rtc/rtc-ds1305.c: remove unnecessary spi_set_drvdata()

The driver core clears the driver data to NULL after device_release or on probe failure. Thus, it is not needed to manually clear the device driver data to NULL.

---

 drivers/rtc/rtc-ds1305.c |    1 -
 1 file changed, 1 deletion(-)
drivers/rtc/rtc-ds1305.c renamed from drivers/rtc/rtc-ds1305.c~rtc-ds1305-remove-unnecessary-spi_set_drvdata +0 -1
diff -puN drivers/rtc/rtc-ds1305.c~rtc-ds1305-remove-unnecessary-spi_set_drvdata drivers/rtc/rtc-ds1305.c
@@ -787,7 +787,6 @@ static int ds1305_remove(struct spi_devi
 		cancel_work_sync(&ds1305->work);
 	}
 
-	spi_set_drvdata(spi, NULL);
 	return 0;
 }
 

_

Patches currently in -mm which might be from [email protected] are

origin.patch drivers-video-backlight-backlightc-remove-backlight-sysfs-uevent.patch linux-next.patch backlight-lcd-call-put_device-if-device_register-fails.patch