b4xxp: Only create the timing_master attributes in the context of probe
Signed-off-by: Shaun Ruffell <sruffell@digium.com> Acked-by: Michael Spiceland <mspiceland@digium.com> Acked-by: Kinsey Moore <kmoore@digium.com> git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9892 a0bf4364-ded3-4de4-8d8a-66a801d63aff
This commit is contained in:
@@ -1974,8 +1974,6 @@ static void b4xxp_init_stage1(struct b4xxp *b4)
|
||||
flush_pci();
|
||||
|
||||
udelay(100); /* wait a bit for clock to settle */
|
||||
|
||||
create_sysfs_files(b4);
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -2914,6 +2912,8 @@ static int __devinit b4xx_probe(struct pci_dev *pdev, const struct pci_device_id
|
||||
|
||||
b4xxp_init_stage1(b4);
|
||||
|
||||
create_sysfs_files(b4);
|
||||
|
||||
if (request_irq(pdev->irq, b4xxp_interrupt, DAHDI_IRQ_SHARED_DISABLED, "b4xxp", b4)) {
|
||||
dev_err(&b4->pdev->dev, "Unable to request IRQ %d\n",
|
||||
pdev->irq);
|
||||
|
||||
Reference in New Issue
Block a user