Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 270265
b: refs/heads/master
c: 329f223
h: refs/heads/master
i:
  270263: d33a08f
v: v3
  • Loading branch information
Tanmay Upadhyay authored and Chris Ball committed Oct 26, 2011
1 parent 05cbb20 commit 4304a01
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7f7e4129c23f0419257184dff6fec89d2d5a8964
refs/heads/master: 329f22371460587c59b866dcbffce5b498b61f38
4 changes: 2 additions & 2 deletions trunk/drivers/mmc/host/sdhci-pxav2.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ static void pxav2_set_private_registers(struct sdhci_host *host, u8 mask)
* tune timing of read data/command when crc error happen
* no performance impact
*/
if (pdata->clk_delay_sel == 1) {
if (pdata && pdata->clk_delay_sel == 1) {
tmp = readw(host->ioaddr + SD_CLOCK_BURST_SIZE_SETUP);

tmp &= ~(SDCLK_DELAY_MASK << SDCLK_DELAY_SHIFT);
Expand All @@ -71,7 +71,7 @@ static void pxav2_set_private_registers(struct sdhci_host *host, u8 mask)
writew(tmp, host->ioaddr + SD_CLOCK_BURST_SIZE_SETUP);
}

if (pdata->flags & PXA_FLAG_ENABLE_CLOCK_GATING) {
if (pdata && (pdata->flags & PXA_FLAG_ENABLE_CLOCK_GATING)) {
tmp = readw(host->ioaddr + SD_FIFO_PARAM);
tmp &= ~CLK_GATE_SETTING_BITS;
writew(tmp, host->ioaddr + SD_FIFO_PARAM);
Expand Down

0 comments on commit 4304a01

Please sign in to comment.