Merge branch 'next-devicetree' of git://git.secretlab.ca/git/linux-2.6
* 'next-devicetree' of git://git.secretlab.ca/git/linux-2.6: mmc_spi: Fix unterminated of_match_table of/sparc: fix build regression from of_device changes of/device: Replace struct of_device with struct platform_device
This commit is contained in:
@@ -619,7 +619,7 @@ static void __devinit n2rng_driver_version(void)
|
||||
pr_info("%s", version);
|
||||
}
|
||||
|
||||
static int __devinit n2rng_probe(struct of_device *op,
|
||||
static int __devinit n2rng_probe(struct platform_device *op,
|
||||
const struct of_device_id *match)
|
||||
{
|
||||
int victoria_falls = (match->data != NULL);
|
||||
@@ -714,7 +714,7 @@ out:
|
||||
return err;
|
||||
}
|
||||
|
||||
static int __devexit n2rng_remove(struct of_device *op)
|
||||
static int __devexit n2rng_remove(struct platform_device *op)
|
||||
{
|
||||
struct n2rng *np = dev_get_drvdata(&op->dev);
|
||||
|
||||
|
||||
@@ -65,7 +65,7 @@ struct n2rng_unit {
|
||||
};
|
||||
|
||||
struct n2rng {
|
||||
struct of_device *op;
|
||||
struct platform_device *op;
|
||||
|
||||
unsigned long flags;
|
||||
#define N2RNG_FLAG_VF 0x00000001 /* Victoria Falls RNG, else N2 */
|
||||
|
||||
@@ -94,7 +94,7 @@ static struct hwrng pasemi_rng = {
|
||||
.data_read = pasemi_rng_data_read,
|
||||
};
|
||||
|
||||
static int __devinit rng_probe(struct of_device *ofdev,
|
||||
static int __devinit rng_probe(struct platform_device *ofdev,
|
||||
const struct of_device_id *match)
|
||||
{
|
||||
void __iomem *rng_regs;
|
||||
@@ -123,7 +123,7 @@ static int __devinit rng_probe(struct of_device *ofdev,
|
||||
return err;
|
||||
}
|
||||
|
||||
static int __devexit rng_remove(struct of_device *dev)
|
||||
static int __devexit rng_remove(struct platform_device *dev)
|
||||
{
|
||||
void __iomem *rng_regs = (void __iomem *)pasemi_rng.priv;
|
||||
|
||||
|
||||
@@ -2528,7 +2528,7 @@ static struct pci_driver ipmi_pci_driver = {
|
||||
|
||||
|
||||
#ifdef CONFIG_PPC_OF
|
||||
static int __devinit ipmi_of_probe(struct of_device *dev,
|
||||
static int __devinit ipmi_of_probe(struct platform_device *dev,
|
||||
const struct of_device_id *match)
|
||||
{
|
||||
struct smi_info *info;
|
||||
@@ -2607,7 +2607,7 @@ static int __devinit ipmi_of_probe(struct of_device *dev,
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int __devexit ipmi_of_remove(struct of_device *dev)
|
||||
static int __devexit ipmi_of_remove(struct platform_device *dev)
|
||||
{
|
||||
cleanup_one_si(dev_get_drvdata(&dev->dev));
|
||||
return 0;
|
||||
|
||||
+1
-1
@@ -961,7 +961,7 @@ static int __init rtc_init(void)
|
||||
#endif
|
||||
#ifdef CONFIG_SPARC32
|
||||
struct device_node *ebus_dp;
|
||||
struct of_device *op;
|
||||
struct platform_device *op;
|
||||
#else
|
||||
void *r;
|
||||
#ifdef RTC_IRQ
|
||||
|
||||
@@ -761,7 +761,7 @@ static struct platform_driver hwicap_platform_driver = {
|
||||
|
||||
#if defined(CONFIG_OF)
|
||||
static int __devinit
|
||||
hwicap_of_probe(struct of_device *op, const struct of_device_id *match)
|
||||
hwicap_of_probe(struct platform_device *op, const struct of_device_id *match)
|
||||
{
|
||||
struct resource res;
|
||||
const unsigned int *id;
|
||||
@@ -798,7 +798,7 @@ hwicap_of_probe(struct of_device *op, const struct of_device_id *match)
|
||||
regs);
|
||||
}
|
||||
|
||||
static int __devexit hwicap_of_remove(struct of_device *op)
|
||||
static int __devexit hwicap_of_remove(struct platform_device *op)
|
||||
{
|
||||
return hwicap_remove(&op->dev);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user