Skip to contentSkip to conversation

+ drivers-rtc-rtc-ds1305c-remove-redundant-spi_set_drvdata.patch added to -mm tree

PATCH [email protected] 1 participant 1 message Dec 10, 2013 Real time clock (RTC)

lore
Share & tools
lore
#0 lore raw

Subject: + drivers-rtc-rtc-ds1305c-remove-redundant-spi_set_drvdata.patch added to -mm tree
To: [email protected]
From: [email protected]
Date: Tue, 10 Dec 2013 13:43:09 -0800

The patch titled
Subject: drivers/rtc/rtc-ds1305.c: remove redundant spi_set_drvdata()
has been added to the -mm tree. Its filename is
drivers-rtc-rtc-ds1305c-remove-redundant-spi_set_drvdata.patch

This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/drivers-rtc-rtc-ds1305c-remove-redundant-spi_set_drvdata.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/drivers-rtc-rtc-ds1305c-remove-redundant-spi_set_drvdata.patch

Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

The -mm tree is included into linux-next and is updated there every 3-4 working days

------------------------------------------------------
From: Sachin Kamat <[email protected]>
Subject: drivers/rtc/rtc-ds1305.c: remove redundant spi_set_drvdata()

Driver core sets driver data to NULL upon failure or remove.

---

 drivers/rtc/rtc-ds1305.c |    1 -
 1 file changed, 1 deletion(-)
drivers/rtc/rtc-ds1305.c renamed from drivers/rtc/rtc-ds1305.c~drivers-rtc-rtc-ds1305c-remove-redundant-spi_set_drvdata +0 -1
diff -puN drivers/rtc/rtc-ds1305.c~drivers-rtc-rtc-ds1305c-remove-redundant-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-rtc-rtc-s5mc-fix-info-rtc-assignment.patch drivers-rtc-rtc-ds1305c-remove-redundant-spi_set_drvdata.patch linux-next.patch