mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-28 09:31:14 +00:00
Merge branch 's3c24xx-updates' of git://git.fluff.org/bjdooks/linux
* 's3c24xx-updates' of git://git.fluff.org/bjdooks/linux: ARM: S3C24XX: DMA: Use valid index when accessing array ARM: S3C: move s3c_pwm_remove to .devexit.text ARM: S3C24XX: Export s3c24xx_set_fiq for modules. ARM: S3C: move s3c_adc_remove to .devexit.text
This commit is contained in:
commit
6bb951a0a6
4 changed files with 8 additions and 4 deletions
|
@ -368,7 +368,7 @@ static int s3c_pwm_probe(struct platform_device *pdev)
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int s3c_pwm_remove(struct platform_device *pdev)
|
static int __devexit s3c_pwm_remove(struct platform_device *pdev)
|
||||||
{
|
{
|
||||||
struct pwm_device *pwm = platform_get_drvdata(pdev);
|
struct pwm_device *pwm = platform_get_drvdata(pdev);
|
||||||
|
|
||||||
|
|
|
@ -365,7 +365,7 @@ static int s3c_adc_probe(struct platform_device *pdev)
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int s3c_adc_remove(struct platform_device *pdev)
|
static int __devexit s3c_adc_remove(struct platform_device *pdev)
|
||||||
{
|
{
|
||||||
struct adc_device *adc = platform_get_drvdata(pdev);
|
struct adc_device *adc = platform_get_drvdata(pdev);
|
||||||
|
|
||||||
|
|
|
@ -1403,11 +1403,13 @@ static struct s3c2410_dma_chan *s3c2410_dma_map_channel(int channel)
|
||||||
ord = &dma_order->channels[channel];
|
ord = &dma_order->channels[channel];
|
||||||
|
|
||||||
for (ch = 0; ch < dma_channels; ch++) {
|
for (ch = 0; ch < dma_channels; ch++) {
|
||||||
|
int tmp;
|
||||||
if (!is_channel_valid(ord->list[ch]))
|
if (!is_channel_valid(ord->list[ch]))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (s3c2410_chans[ord->list[ch]].in_use == 0) {
|
tmp = ord->list[ch] & ~DMA_CH_VALID;
|
||||||
ch = ord->list[ch] & ~DMA_CH_VALID;
|
if (s3c2410_chans[tmp].in_use == 0) {
|
||||||
|
ch = tmp;
|
||||||
goto found;
|
goto found;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -522,6 +522,8 @@ int s3c24xx_set_fiq(unsigned int irq, bool on)
|
||||||
__raw_writel(intmod, S3C2410_INTMOD);
|
__raw_writel(intmod, S3C2410_INTMOD);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
EXPORT_SYMBOL_GPL(s3c24xx_set_fiq);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue