aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/usrp2
diff options
context:
space:
mode:
Diffstat (limited to 'host/lib/usrp/usrp2')
-rw-r--r--host/lib/usrp/usrp2/dboard_impl.cpp4
-rw-r--r--host/lib/usrp/usrp2/usrp2_impl.cpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/host/lib/usrp/usrp2/dboard_impl.cpp b/host/lib/usrp/usrp2/dboard_impl.cpp
index b38a51b04..32c64f541 100644
--- a/host/lib/usrp/usrp2/dboard_impl.cpp
+++ b/host/lib/usrp/usrp2/dboard_impl.cpp
@@ -47,8 +47,8 @@ void usrp2_impl::dboard_init(void){
dboard_interface::sptr _dboard_interface(
new usrp2_dboard_interface(this)
);
- dboard_manager::sptr _dboard_manager(
- new dboard_manager(rx_dboard_id, tx_dboard_id, _dboard_interface)
+ dboard_manager::sptr _dboard_manager = dboard_manager::make(
+ rx_dboard_id, tx_dboard_id, _dboard_interface
);
//load dboards
diff --git a/host/lib/usrp/usrp2/usrp2_impl.cpp b/host/lib/usrp/usrp2/usrp2_impl.cpp
index ac0c3c88a..2b4e8fe39 100644
--- a/host/lib/usrp/usrp2/usrp2_impl.cpp
+++ b/host/lib/usrp/usrp2/usrp2_impl.cpp
@@ -90,9 +90,9 @@ device::sptr usrp2::make(const device_addr_t &device_addr){
);
//create the usrp2 implementation guts
- return device::sptr(dynamic_cast<device*>(
+ return device::sptr(
new usrp2_impl(ctrl_transport, data_transport)
- ));
+ );
}
/***********************************************************************